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

Unified Diff: components/sync/syncable/write_node.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 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
« no previous file with comments | « components/sync/syncable/write_node.h ('k') | components/sync/syncable/write_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/write_node.cc
diff --git a/components/sync/syncable/write_node.cc b/components/sync/syncable/write_node.cc
index ede4038ff8b155ae0bf8887612639d156c3d110b..ea5fb7763f3b1bcfdc1c342fa8a39c3d33f5dc22 100644
--- a/components/sync/syncable/write_node.cc
+++ b/components/sync/syncable/write_node.cc
@@ -195,7 +195,7 @@ void WriteNode::SetExternalId(int64_t id) {
}
WriteNode::WriteNode(WriteTransaction* transaction)
- : entry_(NULL), transaction_(transaction) {
+ : entry_(nullptr), transaction_(transaction) {
DCHECK(transaction);
}
@@ -258,7 +258,7 @@ BaseNode::InitByLookupResult WriteNode::InitTypeRoot(ModelType type) {
bool WriteNode::InitBookmarkByCreation(const BaseNode& parent,
const BaseNode* predecessor) {
DCHECK(!entry_) << "Init called twice";
- // |predecessor| must be a child of |parent| or NULL.
+ // |predecessor| must be a child of |parent| or null.
if (predecessor && predecessor->GetParentId() != parent.GetId()) {
DCHECK(false);
return false;
@@ -404,7 +404,7 @@ WriteNode::InitUniqueByCreationResult WriteNode::InitUniqueByCreationImpl(
bool WriteNode::SetPosition(const BaseNode& new_parent,
const BaseNode* predecessor) {
- // |predecessor| must be a child of |new_parent| or NULL.
+ // |predecessor| must be a child of |new_parent| or null.
if (predecessor && predecessor->GetParentId() != new_parent.GetId()) {
DCHECK(false);
return false;
« no previous file with comments | « components/sync/syncable/write_node.h ('k') | components/sync/syncable/write_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698