summaryrefslogtreecommitdiffstats
path: root/chrome/common/json_schema/json_schema_validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/json_schema/json_schema_validator.cc')
-rw-r--r--chrome/common/json_schema/json_schema_validator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/json_schema/json_schema_validator.cc b/chrome/common/json_schema/json_schema_validator.cc
index a303442..6e5e070 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();
}