aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJonas Olsson <jonasolsson@webrtc.org>2020-01-14 12:11:31 +0100
committerCommit Bot <commit-bot@chromium.org>2020-01-14 14:47:48 +0000
commitb2b2031457525bbfb147bed39dbc5c70563aec06 (patch)
tree60d0d7b08854c225c47d2fc335548c79afeb12e8 /examples
parent6153e15d317374a96abb0b3cffb6b6262c1a39cd (diff)
downloadwebrtc-b2b2031457525bbfb147bed39dbc5c70563aec06.tar.gz
Concatenate string literals at compile time.
This CL was generated by running: git ls-files | grep ".cc" | xargs perl -i -ne 'BEGIN {undef $/}; s/("[\s\n]*<<[\s\n]*")/" "/g; print;'; git cl format After that I manually edited modules/audio_processing/gain_controller2.cc to preserve its original formatting. This primary benefit of this change is a small reduction in binary size. Bug: None Change-Id: I689fa7ba9c717c314bb167e5d592c3c4e0871e29 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165961 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30251}
Diffstat (limited to 'examples')
-rw-r--r--examples/peerconnection/client/conductor.cc6
-rw-r--r--examples/unityplugin/simple_peer_connection.cc6
2 files changed, 8 insertions, 4 deletions
diff --git a/examples/peerconnection/client/conductor.cc b/examples/peerconnection/client/conductor.cc
index 10fbc79a81..005a9d6ddf 100644
--- a/examples/peerconnection/client/conductor.cc
+++ b/examples/peerconnection/client/conductor.cc
@@ -345,7 +345,8 @@ void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) {
webrtc::CreateSessionDescription(type, sdp, &error);
if (!session_description) {
RTC_LOG(WARNING) << "Can't parse received session description message. "
- << "SdpParseError was: " << error.description;
+ "SdpParseError was: "
+ << error.description;
return;
}
RTC_LOG(INFO) << " Received session description :" << message;
@@ -373,7 +374,8 @@ void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) {
webrtc::CreateIceCandidate(sdp_mid, sdp_mlineindex, sdp, &error));
if (!candidate.get()) {
RTC_LOG(WARNING) << "Can't parse received candidate message. "
- << "SdpParseError was: " << error.description;
+ "SdpParseError was: "
+ << error.description;
return;
}
if (!peer_connection_->AddIceCandidate(candidate.get())) {
diff --git a/examples/unityplugin/simple_peer_connection.cc b/examples/unityplugin/simple_peer_connection.cc
index 8a719ba32e..05282fa0b7 100644
--- a/examples/unityplugin/simple_peer_connection.cc
+++ b/examples/unityplugin/simple_peer_connection.cc
@@ -342,7 +342,8 @@ bool SimplePeerConnection::SetRemoteDescription(const char* type,
webrtc::CreateSessionDescription(sdp_type, remote_desc, &error));
if (!session_description) {
RTC_LOG(WARNING) << "Can't parse received session description message. "
- << "SdpParseError was: " << error.description;
+ "SdpParseError was: "
+ << error.description;
return false;
}
RTC_LOG(INFO) << " Received session description :" << remote_desc;
@@ -363,7 +364,8 @@ bool SimplePeerConnection::AddIceCandidate(const char* candidate,
webrtc::CreateIceCandidate(sdp_mid, sdp_mlineindex, candidate, &error));
if (!ice_candidate.get()) {
RTC_LOG(WARNING) << "Can't parse received candidate message. "
- << "SdpParseError was: " << error.description;
+ "SdpParseError was: "
+ << error.description;
return false;
}
if (!peer_connection_->AddIceCandidate(ice_candidate.get())) {