Reformat the WebRTC code base
Running clang-format with chromium's style guide.
The goal is n-fold:
* providing consistency and readability (that's what code guidelines are for)
* preventing noise with presubmit checks and git cl format
* building on the previous point: making it easier to automatically fix format issues
* you name it
Please consider using git-hyper-blame to ignore this commit.
Bug: webrtc:9340
Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87
Reviewed-on: https://webrtc-review.googlesource.com/81185
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23660}
diff --git a/examples/peerconnection/client/conductor.cc b/examples/peerconnection/client/conductor.cc
index b86ba55..b7f06aa 100644
--- a/examples/peerconnection/client/conductor.cc
+++ b/examples/peerconnection/client/conductor.cc
@@ -41,8 +41,7 @@
: public webrtc::SetSessionDescriptionObserver {
public:
static DummySetSessionDescriptionObserver* Create() {
- return
- new rtc::RefCountedObject<DummySetSessionDescriptionObserver>();
+ return new rtc::RefCountedObject<DummySetSessionDescriptionObserver>();
}
virtual void OnSuccess() { RTC_LOG(INFO) << __FUNCTION__; }
virtual void OnFailure(webrtc::RTCError error) {
@@ -52,10 +51,7 @@
};
Conductor::Conductor(PeerConnectionClient* client, MainWindow* main_wnd)
- : peer_id_(-1),
- loopback_(false),
- client_(client),
- main_wnd_(main_wnd) {
+ : peer_id_(-1), loopback_(false), client_(client), main_wnd_(main_wnd) {
client_->RegisterObserver(this);
main_wnd->RegisterObserver(this);
}
@@ -87,15 +83,14 @@
nullptr /* audio_processing */);
if (!peer_connection_factory_) {
- main_wnd_->MessageBox("Error",
- "Failed to initialize PeerConnectionFactory", true);
+ main_wnd_->MessageBox("Error", "Failed to initialize PeerConnectionFactory",
+ true);
DeletePeerConnection();
return false;
}
if (!CreatePeerConnection(/*dtls=*/true)) {
- main_wnd_->MessageBox("Error",
- "CreatePeerConnection failed", true);
+ main_wnd_->MessageBox("Error", "CreatePeerConnection failed", true);
DeletePeerConnection();
}
@@ -363,8 +358,8 @@
RTC_DCHECK(peer_id != -1);
if (peer_connection_.get()) {
- main_wnd_->MessageBox("Error",
- "We only support connecting to one peer at a time", true);
+ main_wnd_->MessageBox(
+ "Error", "We only support connecting to one peer at a time", true);
return;
}