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

Unified Diff: sync/syncable/directory_backing_store.cc

Issue 16654009: Rewrite scoped_ptr<T>(NULL) to use the default ctor in sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_backing_store.cc
diff --git a/sync/syncable/directory_backing_store.cc b/sync/syncable/directory_backing_store.cc
index f37ecc1b88cdcf9c8c369091fc7acdd00f6f549f..0f4e060ce48286dc36af8f41f93eb95ce7e454c0 100644
--- a/sync/syncable/directory_backing_store.cc
+++ b/sync/syncable/directory_backing_store.cc
@@ -108,7 +108,7 @@ scoped_ptr<EntryKernel> UnpackEntry(sql::Statement* statement) {
sync_pb::UniquePosition proto;
if (!proto.ParseFromString(temp)) {
DVLOG(1) << "Unpacked invalid position. Assuming the DB is corrupt";
- return scoped_ptr<EntryKernel>(NULL);
+ return scoped_ptr<EntryKernel>();
}
kernel->mutable_ref(static_cast<UniquePositionField>(i)) =
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698