summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-11-12 18:25:16 +0100
committerMax Kellermann <max@musicpd.org>2017-11-12 18:25:16 +0100
commitff9759c09dc3171d7b0c612240a6a0f0075ab565 (patch)
tree1d072121cf8967d44c48c765ef086f0c56c7b187
parenta92e0e85401adf7fd26ecc876c94239dc2dd1240 (diff)
lib/pulse: add "noexcept"
-rw-r--r--src/lib/pulse/Error.cxx2
-rw-r--r--src/lib/pulse/Error.hxx2
-rw-r--r--src/lib/pulse/LockGuard.hxx4
-rw-r--r--src/lib/pulse/LogError.cxx2
-rw-r--r--src/lib/pulse/LogError.hxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/pulse/Error.cxx b/src/lib/pulse/Error.cxx
index 40eec5a61..40f0f7de6 100644
--- a/src/lib/pulse/Error.cxx
+++ b/src/lib/pulse/Error.cxx
@@ -25,7 +25,7 @@
#include <pulse/error.h>
std::runtime_error
-MakePulseError(pa_context *context, const char *prefix)
+MakePulseError(pa_context *context, const char *prefix) noexcept
{
const int e = pa_context_errno(context);
return FormatRuntimeError("%s: %s", prefix, pa_strerror(e));
diff --git a/src/lib/pulse/Error.hxx b/src/lib/pulse/Error.hxx
index b59716783..b205de21b 100644
--- a/src/lib/pulse/Error.hxx
+++ b/src/lib/pulse/Error.hxx
@@ -25,6 +25,6 @@
struct pa_context;
std::runtime_error
-MakePulseError(pa_context *context, const char *prefix);
+MakePulseError(pa_context *context, const char *prefix) noexcept;
#endif
diff --git a/src/lib/pulse/LockGuard.hxx b/src/lib/pulse/LockGuard.hxx
index f54bb3509..988b98758 100644
--- a/src/lib/pulse/LockGuard.hxx
+++ b/src/lib/pulse/LockGuard.hxx
@@ -28,12 +28,12 @@ class LockGuard {
struct pa_threaded_mainloop *const mainloop;
public:
- explicit LockGuard(struct pa_threaded_mainloop *_mainloop)
+ explicit LockGuard(struct pa_threaded_mainloop *_mainloop) noexcept
:mainloop(_mainloop) {
pa_threaded_mainloop_lock(mainloop);
}
- ~LockGuard() {
+ ~LockGuard() noexcept {
pa_threaded_mainloop_unlock(mainloop);
}
diff --git a/src/lib/pulse/LogError.cxx b/src/lib/pulse/LogError.cxx
index 94024c060..1ebde4c48 100644
--- a/src/lib/pulse/LogError.cxx
+++ b/src/lib/pulse/LogError.cxx
@@ -26,7 +26,7 @@
#include <pulse/error.h>
void
-LogPulseError(pa_context *context, const char *prefix)
+LogPulseError(pa_context *context, const char *prefix) noexcept
{
const int e = pa_context_errno(context);
FormatError(pulse_domain, "%s: %s", prefix, pa_strerror(e));
diff --git a/src/lib/pulse/LogError.hxx b/src/lib/pulse/LogError.hxx
index 5a22ab530..cb39fdaa3 100644
--- a/src/lib/pulse/LogError.hxx
+++ b/src/lib/pulse/LogError.hxx
@@ -23,6 +23,6 @@
struct pa_context;
void
-LogPulseError(pa_context *context, const char *prefix);
+LogPulseError(pa_context *context, const char *prefix) noexcept;
#endif