summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-21 11:24:17 +0100
committerMax Kellermann <max@musicpd.org>2018-01-21 11:35:27 +0100
commit9b13d862c1f91b89036dea600a0f97261fde0c62 (patch)
tree3cee700ad799574e68e5fbf1045e695a0e68ee14 /src
parent590edc648a42d69985b8cf63d710762409ab47af (diff)
playlist/Registry: add "noexcept"
Diffstat (limited to 'src')
-rw-r--r--src/playlist/PlaylistRegistry.cxx4
-rw-r--r--src/playlist/PlaylistRegistry.hxx6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/playlist/PlaylistRegistry.cxx b/src/playlist/PlaylistRegistry.cxx
index b152e07bc..be8b536f1 100644
--- a/src/playlist/PlaylistRegistry.cxx
+++ b/src/playlist/PlaylistRegistry.cxx
@@ -96,7 +96,7 @@ playlist_list_global_init(void)
}
void
-playlist_list_global_finish(void)
+playlist_list_global_finish() noexcept
{
playlist_plugins_for_each_enabled(plugin)
playlist_plugin_finish(plugin);
@@ -272,7 +272,7 @@ playlist_list_open_stream(InputStreamPtr &&is, const char *uri)
}
bool
-playlist_suffix_supported(const char *suffix)
+playlist_suffix_supported(const char *suffix) noexcept
{
assert(suffix != nullptr);
diff --git a/src/playlist/PlaylistRegistry.hxx b/src/playlist/PlaylistRegistry.hxx
index dd11e2ace..877d6fc84 100644
--- a/src/playlist/PlaylistRegistry.hxx
+++ b/src/playlist/PlaylistRegistry.hxx
@@ -21,6 +21,7 @@
#define MPD_PLAYLIST_REGISTRY_HXX
#include "input/Ptr.hxx"
+#include "Compiler.h"
class Mutex;
class Cond;
@@ -44,7 +45,7 @@ playlist_list_global_init();
* Deinitializes all playlist plugins.
*/
void
-playlist_list_global_finish();
+playlist_list_global_finish() noexcept;
/**
* Opens a playlist by its URI.
@@ -69,7 +70,8 @@ playlist_list_open_stream(InputStreamPtr &&is, const char *uri);
* Determines if there is a playlist plugin which can handle the
* specified file name suffix.
*/
+gcc_pure
bool
-playlist_suffix_supported(const char *suffix);
+playlist_suffix_supported(const char *suffix) noexcept;
#endif