From dbeeb701a28971c92458a2f970c523bf66f409da Mon Sep 17 00:00:00 2001 From: deadbeef Date: Thu, 16 Feb 2017 11:10:51 -0800 Subject: [PATCH] Use rtc::ToString instead of std::to_string. std::to_string isn't usable in some versions of the Android NDK. BUG=webrtc:7174 TBR=pthatcher@webrtc.org Review-Url: https://codereview.webrtc.org/2697313003 Cr-Commit-Position: refs/heads/master@{#16651} --- webrtc/p2p/base/dtlstransportinternal.h | 3 ++- webrtc/p2p/base/icetransportinternal.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webrtc/p2p/base/dtlstransportinternal.h b/webrtc/p2p/base/dtlstransportinternal.h index 483a92898e..7a1e8ad3e9 100644 --- a/webrtc/p2p/base/dtlstransportinternal.h +++ b/webrtc/p2p/base/dtlstransportinternal.h @@ -16,6 +16,7 @@ #include #include "webrtc/base/sslstreamadapter.h" +#include "webrtc/base/stringencode.h" #include "webrtc/p2p/base/icetransportinternal.h" #include "webrtc/p2p/base/jseptransport.h" #include "webrtc/p2p/base/packettransportinternal.h" @@ -97,7 +98,7 @@ class DtlsTransportInternal : public rtc::PacketTransportInternal { // Debugging description of this transport. std::string debug_name() const override { - return transport_name() + " " + std::to_string(component()); + return transport_name() + " " + rtc::ToString(component()); } protected: diff --git a/webrtc/p2p/base/icetransportinternal.h b/webrtc/p2p/base/icetransportinternal.h index 1391cc9c96..074a34a15d 100644 --- a/webrtc/p2p/base/icetransportinternal.h +++ b/webrtc/p2p/base/icetransportinternal.h @@ -13,6 +13,7 @@ #include +#include "webrtc/base/stringencode.h" #include "webrtc/p2p/base/candidate.h" #include "webrtc/p2p/base/candidatepairinterface.h" #include "webrtc/p2p/base/jseptransport.h" @@ -143,7 +144,7 @@ class IceTransportInternal : public rtc::PacketTransportInternal { // Debugging description of this transport. std::string debug_name() const override { - return transport_name() + " " + std::to_string(component()); + return transport_name() + " " + rtc::ToString(component()); } };