replace stringstream in call/
Bug: webrtc:8982
Change-Id: Ib4149bd421afa9018dcd76c60d0a6acfc3b764ff
Reviewed-on: https://webrtc-review.googlesource.com/64881
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22737}
diff --git a/call/rtp_config.cc b/call/rtp_config.cc
index 3621f72..71322f9 100644
--- a/call/rtp_config.cc
+++ b/call/rtp_config.cc
@@ -9,20 +9,21 @@
*/
#include "call/rtp_config.h"
-
-#include <sstream>
+#include "rtc_base/strings/string_builder.h"
namespace webrtc {
std::string NackConfig::ToString() const {
- std::stringstream ss;
+ char buf[1024];
+ rtc::SimpleStringBuilder ss(buf);
ss << "{rtp_history_ms: " << rtp_history_ms;
ss << '}';
return ss.str();
}
std::string UlpfecConfig::ToString() const {
- std::stringstream ss;
+ char buf[1024];
+ rtc::SimpleStringBuilder ss(buf);
ss << "{ulpfec_payload_type: " << ulpfec_payload_type;
ss << ", red_payload_type: " << red_payload_type;
ss << ", red_rtx_payload_type: " << red_rtx_payload_type;