Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: content/browser/accessibility/browser_accessibility.h

Issue 642313003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Including id in the AUTHORS file. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 6318e64b53d57043757c69a01388ca5c0e63c35f..131ffdbbfdc68caa2e035727808b88ac342af372 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -84,15 +84,15 @@ class CONTENT_EXPORT BrowserAccessibility {
// returns true.
uint32 PlatformChildCount() const;
- // Return a pointer to the child at the given index, or NULL for an
- // invalid index. Returns NULL if PlatformIsLeaf() returns true.
+ // Return a pointer to the child at the given index, or nullptr for an
+ // invalid index. Returns nullptr if PlatformIsLeaf() returns true.
BrowserAccessibility* PlatformGetChild(uint32 child_index) const;
- // Return the previous sibling of this object, or NULL if it's the first
+ // Return the previous sibling of this object, or nullptr if it's the first
// child of its parent.
BrowserAccessibility* GetPreviousSibling();
- // Return the next sibling of this object, or NULL if it's the last child
+ // Return the next sibling of this object, or nullptr if it's the last child
// of its parent.
BrowserAccessibility* GetNextSibling();
@@ -138,7 +138,7 @@ class CONTENT_EXPORT BrowserAccessibility {
//
BrowserAccessibilityManager* manager() const { return manager_; }
- bool instance_active() const { return node_ != NULL; }
+ bool instance_active() const { return node_ != nullptr; }
ui::AXNode* node() const { return node_; }
const std::string& name() const { return name_; }
const std::string& value() const { return value_; }

Powered by Google App Engine
This is Rietveld 408576698