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

Unified Diff: media/base/media_format.cc

Issue 6248026: Rename Real* to Double* in values.* and dependent files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More renames Created 9 years, 11 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: media/base/media_format.cc
diff --git a/media/base/media_format.cc b/media/base/media_format.cc
index 37371c5a1e16292d740d134944dbee17d4b5bc8b..80c60e089453894f0db2c11fd80a7d79240e810f 100644
--- a/media/base/media_format.cc
+++ b/media/base/media_format.cc
@@ -92,7 +92,7 @@ void MediaFormat::SetAsInteger(const std::string& key, int in_value) {
void MediaFormat::SetAsReal(const std::string& key, double in_value) {
ReleaseValue(key);
- value_map_[key] = Value::CreateRealValue(in_value);
+ value_map_[key] = Value::CreateDoubleValue(in_value);
}
void MediaFormat::SetAsString(const std::string& key,
@@ -113,7 +113,7 @@ bool MediaFormat::GetAsInteger(const std::string& key, int* out_value) const {
bool MediaFormat::GetAsReal(const std::string& key, double* out_value) const {
Value* value = GetValue(key);
- return value != NULL && value->GetAsReal(out_value);
+ return value != NULL && value->GetAsDouble(out_value);
}
bool MediaFormat::GetAsString(const std::string& key,

Powered by Google App Engine
This is Rietveld 408576698