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

Unified Diff: sync/internal_api/public/base/unique_position.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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: sync/internal_api/public/base/unique_position.cc
diff --git a/sync/internal_api/public/base/unique_position.cc b/sync/internal_api/public/base/unique_position.cc
index a47d42ba7bcd444e68edc704c149ba6109ee962a..b6c18eff9f334a662916233e2249b04386de1e9c 100644
--- a/sync/internal_api/public/base/unique_position.cc
+++ b/sync/internal_api/public/base/unique_position.cc
@@ -61,7 +61,7 @@ UniquePosition UniquePosition::FromInt64(
UniquePosition UniquePosition::InitialPosition(
const std::string& suffix) {
DCHECK(IsValidSuffix(suffix));
- return UniquePosition("", suffix);
+ return UniquePosition(std::string(), suffix);
}
// static.
@@ -175,7 +175,7 @@ std::string UniquePosition::FindSmallerWithSuffix(
if (suffix_zeroes > ref_zeroes) {
// Implies suffix < ref.
- return "";
+ return std::string();
}
if (suffix.substr(suffix_zeroes) < reference.substr(ref_zeroes)) {
@@ -210,7 +210,7 @@ std::string UniquePosition::FindGreaterWithSuffix(
if (suffix_FFs > ref_FFs) {
// Implies suffix > reference.
- return "";
+ return std::string();
}
if (suffix.substr(suffix_FFs) > reference.substr(ref_FFs)) {
@@ -244,7 +244,7 @@ std::string UniquePosition::FindBetweenWithSuffix(
// Sometimes our suffix puts us where we want to be.
if (before < suffix && suffix < after) {
- return "";
+ return std::string();
}
size_t i = 0;
« no previous file with comments | « sync/internal_api/public/base/ordinal_unittest.cc ('k') | sync/internal_api/sync_encryption_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698