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

Unified Diff: webrtc/video/rampup_tests.cc

Issue 1507643004: Lint clean video/ and add lint presubmit check. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ostringstream Created 5 years 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 | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/rampup_tests.cc
diff --git a/webrtc/video/rampup_tests.cc b/webrtc/video/rampup_tests.cc
index 21b442339061174394bf175c83ad053685a28afd..0e9bd3058c768aacc0e9d72cfc8293ceeca042c2 100644
--- a/webrtc/video/rampup_tests.cc
+++ b/webrtc/video/rampup_tests.cc
@@ -322,9 +322,9 @@ Call::Config RampUpDownUpTester::GetReceiverCallConfig() {
std::string RampUpDownUpTester::GetModifierString() const {
std::string str("_");
- char temp_str[5];
- sprintf(temp_str, "%i", static_cast<int>(num_streams_));
- str += std::string(temp_str);
+ std::ostringstream s;
+ s << num_streams_;
+ str += s.str();
str += "stream";
str += (num_streams_ > 1 ? "s" : "");
str += "_";
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698