| Index: chromecast/base/serializers.cc
|
| diff --git a/chromecast/base/serializers.cc b/chromecast/base/serializers.cc
|
| index 34bc9fd3cdea408e7543179786411482bcf3dde9..2e6135bb17fdc4b7cce15227d38c3d99e3ac5874 100644
|
| --- a/chromecast/base/serializers.cc
|
| +++ b/chromecast/base/serializers.cc
|
| @@ -15,8 +15,8 @@ scoped_ptr<base::Value> DeserializeFromJson(const std::string& text) {
|
|
|
| int error_code = -1;
|
| std::string error_msg;
|
| - scoped_ptr<base::Value> value(
|
| - deserializer.Deserialize(&error_code, &error_msg));
|
| + scoped_ptr<base::Value> value =
|
| + deserializer.Deserialize(&error_code, &error_msg);
|
| DLOG_IF(ERROR, !value) << "JSON error " << error_code << ":" << error_msg;
|
|
|
| // Value will hold the nullptr in case of an error.
|
| @@ -36,8 +36,8 @@ scoped_ptr<base::Value> DeserializeJsonFromFile(const base::FilePath& path) {
|
|
|
| int error_code = -1;
|
| std::string error_msg;
|
| - scoped_ptr<base::Value> value(
|
| - deserializer.Deserialize(&error_code, &error_msg));
|
| + scoped_ptr<base::Value> value =
|
| + deserializer.Deserialize(&error_code, &error_msg);
|
| DLOG_IF(ERROR, !value) << "JSON error " << error_code << ":" << error_msg;
|
|
|
| // Value will hold the nullptr in case of an error.
|
|
|