Commit 9b13d862 authored by Max Kellermann's avatar Max Kellermann

playlist/Registry: add "noexcept"

parent 590edc64
...@@ -96,7 +96,7 @@ playlist_list_global_init(void) ...@@ -96,7 +96,7 @@ playlist_list_global_init(void)
} }
void void
playlist_list_global_finish(void) playlist_list_global_finish() noexcept
{ {
playlist_plugins_for_each_enabled(plugin) playlist_plugins_for_each_enabled(plugin)
playlist_plugin_finish(plugin); playlist_plugin_finish(plugin);
...@@ -272,7 +272,7 @@ playlist_list_open_stream(InputStreamPtr &&is, const char *uri) ...@@ -272,7 +272,7 @@ playlist_list_open_stream(InputStreamPtr &&is, const char *uri)
} }
bool bool
playlist_suffix_supported(const char *suffix) playlist_suffix_supported(const char *suffix) noexcept
{ {
assert(suffix != nullptr); assert(suffix != nullptr);
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define MPD_PLAYLIST_REGISTRY_HXX #define MPD_PLAYLIST_REGISTRY_HXX
#include "input/Ptr.hxx" #include "input/Ptr.hxx"
#include "Compiler.h"
class Mutex; class Mutex;
class Cond; class Cond;
...@@ -44,7 +45,7 @@ playlist_list_global_init(); ...@@ -44,7 +45,7 @@ playlist_list_global_init();
* Deinitializes all playlist plugins. * Deinitializes all playlist plugins.
*/ */
void void
playlist_list_global_finish(); playlist_list_global_finish() noexcept;
/** /**
* Opens a playlist by its URI. * Opens a playlist by its URI.
...@@ -69,7 +70,8 @@ playlist_list_open_stream(InputStreamPtr &&is, const char *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 * Determines if there is a playlist plugin which can handle the
* specified file name suffix. * specified file name suffix.
*/ */
gcc_pure
bool bool
playlist_suffix_supported(const char *suffix); playlist_suffix_supported(const char *suffix) noexcept;
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment