Remove simple stringstream usages.
This CL replaces std::o?stringstream with rtc::StringBuilder where that's possible to do without changing any of the surrounding code. It also updates includes and build files as appropriate. The CL was generated by running 'git grep -l -P std::o?stringstream | xargs perl -pi -e "s/std::o?stringstream/rtc::StringBuilder/g"'. Then I've manually updated the #includes and BUILD files, run 'git cl format' and unstaged any file that would need more complex fixes. Bug: webrtc:8982 Change-Id: Ibc32153f4a3fd177e260b6ad05ce393972549357 Reviewed-on: https://webrtc-review.googlesource.com/98460 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24605}
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include "rtc_base/bind.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/ipaddress.h"
|
||||
#include "rtc_base/strings/string_builder.h"
|
||||
#include "sdk/android/generated_base_jni/jni/NetworkMonitorAutoDetect_jni.h"
|
||||
#include "sdk/android/generated_base_jni/jni/NetworkMonitor_jni.h"
|
||||
#include "sdk/android/native_api/jni/java_types.h"
|
||||
@ -152,7 +153,7 @@ NetworkInformation& NetworkInformation::operator=(NetworkInformation&&) =
|
||||
default;
|
||||
|
||||
std::string NetworkInformation::ToString() const {
|
||||
std::stringstream ss;
|
||||
rtc::StringBuilder ss;
|
||||
ss << "NetInfo[name " << interface_name << "; handle " << handle << "; type "
|
||||
<< type;
|
||||
if (type == NETWORK_VPN) {
|
||||
|
||||
Reference in New Issue
Block a user