webrtc: Remove semicolons.
Bug: chromium:926235
Change-Id: I66c10ab3df38adf87152d1f18cc8162afedca7e4
Reviewed-on: https://webrtc-review.googlesource.com/c/123560
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26780}
diff --git a/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc b/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc
index 6731d50..ff6ac01 100644
--- a/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc
+++ b/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc
@@ -29,7 +29,7 @@
constexpr float kEventLogMinPacketLossChangeFraction = 0.5;
} // namespace
-AudioNetworkAdaptorImpl::Config::Config() : event_log(nullptr){};
+AudioNetworkAdaptorImpl::Config::Config() : event_log(nullptr) {}
AudioNetworkAdaptorImpl::Config::~Config() = default;
diff --git a/modules/audio_coding/codecs/opus/audio_encoder_opus.h b/modules/audio_coding/codecs/opus/audio_encoder_opus.h
index b970ae9..dc14620 100644
--- a/modules/audio_coding/codecs/opus/audio_encoder_opus.h
+++ b/modules/audio_coding/codecs/opus/audio_encoder_opus.h
@@ -40,9 +40,9 @@
float OptimizePacketLossRate(float packet_loss_rate) const;
// Getters for testing.
- float min_packet_loss_rate() const { return min_packet_loss_rate_; };
- float max_packet_loss_rate() const { return max_packet_loss_rate_; };
- float slope() const { return slope_; };
+ float min_packet_loss_rate() const { return min_packet_loss_rate_; }
+ float max_packet_loss_rate() const { return max_packet_loss_rate_; }
+ float slope() const { return slope_; }
private:
const float min_packet_loss_rate_;
diff --git a/modules/audio_processing/aec3/aec_state.h b/modules/audio_processing/aec3/aec_state.h
index 0ba9e19..f511429 100644
--- a/modules/audio_processing/aec3/aec_state.h
+++ b/modules/audio_processing/aec3/aec_state.h
@@ -306,7 +306,7 @@
class SaturationDetector {
public:
// Returns whether the echo is to be considered saturated.
- bool SaturatedEcho() const { return saturated_echo_; };
+ bool SaturatedEcho() const { return saturated_echo_; }
// Updates the detection decision based on new data.
void Update(rtc::ArrayView<const float> x,
@@ -327,7 +327,7 @@
explicit LegacySaturationDetector(const EchoCanceller3Config& config);
// Returns whether the echo is to be considered saturated.
- bool SaturatedEcho() const { return saturated_echo_; };
+ bool SaturatedEcho() const { return saturated_echo_; }
// Resets the state of the detector.
void Reset();
diff --git a/modules/audio_processing/agc2/agc2_common.cc b/modules/audio_processing/agc2/agc2_common.cc
index af943df..1107885 100644
--- a/modules/audio_processing/agc2/agc2_common.cc
+++ b/modules/audio_processing/agc2/agc2_common.cc
@@ -54,4 +54,4 @@
constexpr float kDefaultExtraSaturationMarginDb = 2.f;
return kDefaultExtraSaturationMarginDb;
}
-}; // namespace webrtc
+} // namespace webrtc
diff --git a/modules/audio_processing/agc2/gain_applier.h b/modules/audio_processing/agc2/gain_applier.h
index 7f9f00e..d9aa19d 100644
--- a/modules/audio_processing/agc2/gain_applier.h
+++ b/modules/audio_processing/agc2/gain_applier.h
@@ -22,7 +22,7 @@
void ApplyGain(AudioFrameView<float> signal);
void SetGainFactor(float gain_factor);
- float GetGainFactor() const { return current_gain_factor_; };
+ float GetGainFactor() const { return current_gain_factor_; }
private:
void Initialize(size_t samples_per_channel);
diff --git a/modules/audio_processing/logging/apm_data_dumper.cc b/modules/audio_processing/logging/apm_data_dumper.cc
index cc879c8..6d84750 100644
--- a/modules/audio_processing/logging/apm_data_dumper.cc
+++ b/modules/audio_processing/logging/apm_data_dumper.cc
@@ -54,7 +54,7 @@
ApmDataDumper::ApmDataDumper(int instance_index)
: instance_index_(instance_index) {}
#else
-ApmDataDumper::ApmDataDumper(int instance_index){};
+ApmDataDumper::ApmDataDumper(int instance_index) {}
#endif
ApmDataDumper::~ApmDataDumper() = default;
diff --git a/modules/desktop_capture/desktop_geometry.h b/modules/desktop_capture/desktop_geometry.h
index 78a9230..91608f0 100644
--- a/modules/desktop_capture/desktop_geometry.h
+++ b/modules/desktop_capture/desktop_geometry.h
@@ -136,7 +136,7 @@
// Adds (dx, dy) to the position of the rectangle.
void Translate(int32_t dx, int32_t dy);
- void Translate(DesktopVector d) { Translate(d.x(), d.y()); };
+ void Translate(DesktopVector d) { Translate(d.x(), d.y()); }
// Enlarges current DesktopRect by subtracting |left_offset| and |top_offset|
// from |left_| and |top_|, and adding |right_offset| and |bottom_offset| to
diff --git a/modules/video_capture/video_capture.h b/modules/video_capture/video_capture.h
index 90af86d..8d2a8f5 100644
--- a/modules/video_capture/video_capture.h
+++ b/modules/video_capture/video_capture.h
@@ -109,7 +109,7 @@
virtual bool GetApplyRotation() = 0;
protected:
- ~VideoCaptureModule() override{};
+ ~VideoCaptureModule() override {}
};
} // namespace webrtc
diff --git a/modules/video_capture/video_capture_defines.h b/modules/video_capture/video_capture_defines.h
index 3987c03..f69d03e 100644
--- a/modules/video_capture/video_capture_defines.h
+++ b/modules/video_capture/video_capture_defines.h
@@ -35,7 +35,7 @@
maxFPS = 0;
videoType = VideoType::kUnknown;
interlaced = false;
- };
+ }
bool operator!=(const VideoCaptureCapability& other) const {
if (width != other.width)
return true;
diff --git a/modules/video_coding/codecs/vp8/libvpx_interface.cc b/modules/video_coding/codecs/vp8/libvpx_interface.cc
index 8f6a3a6..6b39053 100644
--- a/modules/video_coding/codecs/vp8/libvpx_interface.cc
+++ b/modules/video_coding/codecs/vp8/libvpx_interface.cc
@@ -141,7 +141,7 @@
RTC_NOTREACHED() << "Unsupported libvpx ctrl_id: " << ctrl_id;
}
return VPX_CODEC_ERROR;
- };
+ }
vpx_codec_err_t codec_control(vpx_codec_ctx_t* ctx,
vp8e_enc_control_id ctrl_id,
@@ -153,7 +153,7 @@
RTC_NOTREACHED() << "Unsupported libvpx ctrl_id: " << ctrl_id;
}
return VPX_CODEC_ERROR;
- };
+ }
vpx_codec_err_t codec_control(vpx_codec_ctx_t* ctx,
vp8e_enc_control_id ctrl_id,
@@ -165,7 +165,7 @@
RTC_NOTREACHED() << "Unsupported libvpx ctrl_id: " << ctrl_id;
}
return VPX_CODEC_ERROR;
- };
+ }
vpx_codec_err_t codec_control(vpx_codec_ctx_t* ctx,
vp8e_enc_control_id ctrl_id,
@@ -177,7 +177,7 @@
RTC_NOTREACHED() << "Unsupported libvpx ctrl_id: " << ctrl_id;
}
return VPX_CODEC_ERROR;
- };
+ }
vpx_codec_err_t codec_encode(vpx_codec_ctx_t* ctx,
const vpx_image_t* img,