*: add lost of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-03 21:33:44 +02:00
parent 62b03cfddf
commit a057b4f6d8
65 changed files with 246 additions and 241 deletions

View File

@@ -132,7 +132,7 @@ public:
}
gcc_pure
const char *GetDevice() {
const char *GetDevice() const noexcept {
return device.empty() ? default_device : device.c_str();
}

View File

@@ -73,19 +73,19 @@ class OpenALOutput {
private:
gcc_pure
ALint GetSourceI(ALenum param) const {
ALint GetSourceI(ALenum param) const noexcept {
ALint value;
alGetSourcei(source, param, &value);
return value;
}
gcc_pure
bool HasProcessed() const {
bool HasProcessed() const noexcept {
return GetSourceI(AL_BUFFERS_PROCESSED) > 0;
}
gcc_pure
bool IsPlaying() const {
bool IsPlaying() const noexcept {
return GetSourceI(AL_SOURCE_STATE) == AL_PLAYING;
}

View File

@@ -97,7 +97,7 @@ class RecorderOutput {
private:
gcc_pure
bool HasDynamicPath() const {
bool HasDynamicPath() const noexcept {
return !format_path.empty();
}

View File

@@ -191,7 +191,7 @@ public:
* Caller must lock the mutex.
*/
gcc_pure
bool HasClients() const {
bool HasClients() const noexcept {
return !clients.empty();
}
@@ -199,7 +199,7 @@ public:
* Check whether there is at least one client.
*/
gcc_pure
bool LockHasClients() const {
bool LockHasClients() const noexcept {
const std::lock_guard<Mutex> protect(mutex);
return HasClients();
}