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

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: 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: 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();
}
« no previous file with comments | « chrome/common/extensions/update_manifest_unittest.cc ('k') | chrome/common/json_schema/json_schema_validator_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698