Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: webrtc/sound/nullsoundsystem.cc

Issue 1425533003: Fix chromium-style warnings in webrtc/sound/. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/sound/nullsoundsystem.h ('k') | webrtc/sound/nullsoundsystemfactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sound/nullsoundsystem.cc
diff --git a/webrtc/sound/nullsoundsystem.cc b/webrtc/sound/nullsoundsystem.cc
index 962f4105727d51de683d19a4f4b88c4cd9cde101..6f908c9fc34f90d12182dd54907485bd96954750 100644
--- a/webrtc/sound/nullsoundsystem.cc
+++ b/webrtc/sound/nullsoundsystem.cc
@@ -16,9 +16,7 @@
#include "webrtc/base/logging.h"
namespace rtc {
-
class Thread;
-
}
namespace rtc {
@@ -30,69 +28,68 @@ class NullSoundDeviceLocator : public SoundDeviceLocator {
public:
NullSoundDeviceLocator() : SoundDeviceLocator(kNullName, kNullName) {}
- virtual SoundDeviceLocator *Copy() const {
+ SoundDeviceLocator *Copy() const override {
return new NullSoundDeviceLocator();
}
};
class NullSoundInputStream : public SoundInputStreamInterface {
public:
- virtual bool StartReading() {
+ bool StartReading() override {
return true;
}
- virtual bool StopReading() {
+ bool StopReading() override {
return true;
}
- virtual bool GetVolume(int *volume) {
+ bool GetVolume(int *volume) override {
*volume = SoundSystemInterface::kMinVolume;
return true;
}
- virtual bool SetVolume(int volume) {
+ bool SetVolume(int volume) override {
return false;
}
- virtual bool Close() {
+ bool Close() override {
return true;
}
- virtual int LatencyUsecs() {
+ int LatencyUsecs() override {
return 0;
}
};
class NullSoundOutputStream : public SoundOutputStreamInterface {
public:
- virtual bool EnableBufferMonitoring() {
+ bool EnableBufferMonitoring() override {
return true;
}
- virtual bool DisableBufferMonitoring() {
+ bool DisableBufferMonitoring() override {
return true;
}
- virtual bool WriteSamples(const void *sample_data,
- size_t size) {
+ bool WriteSamples(const void *sample_data, size_t size) override {
LOG(LS_VERBOSE) << "Got " << size << " bytes of playback samples";
return true;
}
- virtual bool GetVolume(int *volume) {
+ bool GetVolume(int *volume) override {
*volume = SoundSystemInterface::kMinVolume;
return true;
}
- virtual bool SetVolume(int volume) {
+ bool SetVolume(int volume) override {
return false;
}
- virtual bool Close() {
+ bool Close() override {
return true;
}
- virtual int LatencyUsecs() {
+ int LatencyUsecs() override {
return 0;
}
};
« no previous file with comments | « webrtc/sound/nullsoundsystem.h ('k') | webrtc/sound/nullsoundsystemfactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698