Use rtc::ToString instead of std::to_string
Use rtc::ToString instead of std::to_string. std::to_string isn't usable in some versions of the Android NDK. Most of the webrtc code (except test code) is using rtc::ToString(). This is the only instance that is using std::to_string() Bug: None Change-Id: Id8e234c3e48269dd115c6dc50867121f52cdc508 Reviewed-on: https://webrtc-review.googlesource.com/45560 Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Commit-Queue: Jiawei Ou <ouj@fb.com> Cr-Commit-Position: refs/heads/master@{#21792}
This commit is contained in:
@ -9,8 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "call/audio_send_stream.h"
|
#include "call/audio_send_stream.h"
|
||||||
|
#include "rtc_base/stringencode.h"
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
@ -66,7 +65,7 @@ std::string AudioSendStream::Config::SendCodecSpec::ToString() const {
|
|||||||
ss << "{nack_enabled: " << (nack_enabled ? "true" : "false");
|
ss << "{nack_enabled: " << (nack_enabled ? "true" : "false");
|
||||||
ss << ", transport_cc_enabled: " << (transport_cc_enabled ? "true" : "false");
|
ss << ", transport_cc_enabled: " << (transport_cc_enabled ? "true" : "false");
|
||||||
ss << ", cng_payload_type: "
|
ss << ", cng_payload_type: "
|
||||||
<< (cng_payload_type ? std::to_string(*cng_payload_type) : "<unset>");
|
<< (cng_payload_type ? rtc::ToString(*cng_payload_type) : "<unset>");
|
||||||
ss << ", payload_type: " << payload_type;
|
ss << ", payload_type: " << payload_type;
|
||||||
ss << ", format: " << format;
|
ss << ", format: " << format;
|
||||||
ss << '}';
|
ss << '}';
|
||||||
|
|||||||
Reference in New Issue
Block a user