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

Unified Diff: dbus/values_util_unittest.cc

Issue 1083323005: dbus/values_util_unittest.cc: use sqrt from cmath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/values_util_unittest.cc
diff --git a/dbus/values_util_unittest.cc b/dbus/values_util_unittest.cc
index a4e560faf88afd1689e969efa2567690cf7a673e..27ec2d0c9899e27d52c2c8a492d406ac9f939825 100644
--- a/dbus/values_util_unittest.cc
+++ b/dbus/values_util_unittest.cc
@@ -4,6 +4,7 @@
#include "dbus/values_util.h"
+#include <cmath>
#include <vector>
#include "base/json/json_writer.h"
@@ -357,7 +358,7 @@ TEST(ValuesUtilTest, PopDoubleToIntDictionary) {
const std::vector<int32> values(kValues, kValues + arraysize(kValues));
std::vector<double> keys(values.size());
for (size_t i = 0; i != values.size(); ++i)
- keys[i] = sqrt(values[i]);
+ keys[i] = std::sqrt(values[i]);
// Append a dictionary.
scoped_ptr<Response> response(Response::CreateEmpty());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698