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:
@ -55,6 +55,7 @@
|
||||
#include "rtc_base/logging.h"
|
||||
#include "rtc_base/numerics/sequence_number_util.h"
|
||||
#include "rtc_base/rate_statistics.h"
|
||||
#include "rtc_base/strings/string_builder.h"
|
||||
|
||||
#ifndef BWE_TEST_LOGGING_COMPILE_TIME_ENABLE
|
||||
#define BWE_TEST_LOGGING_COMPILE_TIME_ENABLE 0
|
||||
@ -75,7 +76,7 @@ void SortPacketFeedbackVector(std::vector<PacketFeedback>* vec) {
|
||||
}
|
||||
|
||||
std::string SsrcToString(uint32_t ssrc) {
|
||||
std::stringstream ss;
|
||||
rtc::StringBuilder ss;
|
||||
ss << "SSRC " << ssrc;
|
||||
return ss.str();
|
||||
}
|
||||
@ -408,7 +409,7 @@ std::string GetCandidatePairLogDescriptionAsString(
|
||||
// represents a pair of a local server-reflexive candidate on a WiFi network
|
||||
// and a remote relay candidate using TCP as the relay protocol on a cell
|
||||
// network, when the candidate pair communicates over UDP using IPv4.
|
||||
std::stringstream ss;
|
||||
rtc::StringBuilder ss;
|
||||
std::string local_candidate_type =
|
||||
GetIceCandidateTypeAsString(config.local_candidate_type);
|
||||
std::string remote_candidate_type =
|
||||
|
||||
Reference in New Issue
Block a user