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/stats/rtcstatsreport.cc b/stats/rtcstatsreport.cc
index 0918567..33f6b6a 100644
--- a/stats/rtcstatsreport.cc
+++ b/stats/rtcstatsreport.cc
@@ -17,17 +17,12 @@
RTCStatsReport::ConstIterator::ConstIterator(
const rtc::scoped_refptr<const RTCStatsReport>& report,
StatsMap::const_iterator it)
- : report_(report),
- it_(it) {
-}
+ : report_(report), it_(it) {}
RTCStatsReport::ConstIterator::ConstIterator(const ConstIterator&& other)
- : report_(std::move(other.report_)),
- it_(std::move(other.it_)) {
-}
+ : report_(std::move(other.report_)), it_(std::move(other.it_)) {}
-RTCStatsReport::ConstIterator::~ConstIterator() {
-}
+RTCStatsReport::ConstIterator::~ConstIterator() {}
RTCStatsReport::ConstIterator& RTCStatsReport::ConstIterator::operator++() {
++it_;
@@ -63,11 +58,9 @@
}
RTCStatsReport::RTCStatsReport(int64_t timestamp_us)
- : timestamp_us_(timestamp_us) {
-}
+ : timestamp_us_(timestamp_us) {}
-RTCStatsReport::~RTCStatsReport() {
-}
+RTCStatsReport::~RTCStatsReport() {}
rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Copy() const {
rtc::scoped_refptr<RTCStatsReport> copy = Create(timestamp_us_);
@@ -78,11 +71,12 @@
}
void RTCStatsReport::AddStats(std::unique_ptr<const RTCStats> stats) {
- auto result = stats_.insert(std::make_pair(std::string(stats->id()),
- std::move(stats)));
- RTC_DCHECK(result.second) <<
- "A stats object with ID " << result.first->second->id() << " is already "
- "present in this stats report.";
+ auto result =
+ stats_.insert(std::make_pair(std::string(stats->id()), std::move(stats)));
+ RTC_DCHECK(result.second)
+ << "A stats object with ID " << result.first->second->id()
+ << " is already "
+ "present in this stats report.";
}
const RTCStats* RTCStatsReport::Get(const std::string& id) const {