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

Unified Diff: chrome/common/json_schema/json_schema_validator.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-run on ToT, revert third_party changes and fix vexing parses. 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: chrome/common/json_schema/json_schema_validator.cc
diff --git a/chrome/common/json_schema/json_schema_validator.cc b/chrome/common/json_schema/json_schema_validator.cc
index a303442e56dca07455ce0f695c37f6088da6b8e3..6e5e070b40ddfd6033461171d4f962b1b2ed401e 100644
--- a/chrome/common/json_schema/json_schema_validator.cc
+++ b/chrome/common/json_schema/json_schema_validator.cc
@@ -99,7 +99,7 @@ std::string JSONSchemaValidator::GetJSONSchemaType(const Value* value) {
return schema::kArray;
default:
NOTREACHED() << "Unexpected value type: " << value->GetType();
- return "";
+ return std::string();
}
}
@@ -147,7 +147,7 @@ JSONSchemaValidator::~JSONSchemaValidator() {}
bool JSONSchemaValidator::Validate(const Value* instance) {
errors_.clear();
- Validate(instance, schema_root_, "");
+ Validate(instance, schema_root_, std::string());
return errors_.empty();
}

Powered by Google App Engine
This is Rietveld 408576698