aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-03-07 15:23:34 +0000
committerpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-03-07 15:23:34 +0000
commit3ecc162d010d9943925be27773f73b901904bff1 (patch)
tree113d88e8ac4a8a88088a77e7c220ce139aad86dd /webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
parent371243dfa3467c7be7217da4b537cc33d2bd45a6 (diff)
downloadwebrtc-3ecc162d010d9943925be27773f73b901904bff1.tar.gz
Remove std:: prefixes from C functions in webrtc/.
std::memcpy -> memcpy for instance. This change was motivated by a compile report complaining that std::rand() was used instead of rand(), probably with a stdlib.h include instead of cstdlib. Use of C functions without the std:: prefix is a lot more common, so removing std:: to address this. BUG= R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9549004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5658 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc')
-rw-r--r--webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
index 86506fb1b7..f93b148248 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
@@ -10,7 +10,8 @@
#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h"
-#include <cstdio>
+#include <stdio.h>
+
#include <sstream>
namespace webrtc {
@@ -83,7 +84,7 @@ int Random::Gaussian(int mean, int standard_deviation) {
a_ ^= b_;
b_ += a_;
return static_cast<int>(mean + standard_deviation *
- std::sqrt(-2 * std::log(u1)) * std::cos(2 * kPi * u2));
+ sqrt(-2 * log(u1)) * cos(2 * kPi * u2));
}
Packet::Packet()