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}
This commit is contained in:
deadbeef 2017-02-16 11:10:51 -08:00 committed by Commit bot
parent 3a14aad805
commit dbeeb701a2
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
#include <vector>
#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:

View File

@ -13,6 +13,7 @@
#include <string>
#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());
}
};