playlist/Registry: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-21 11:24:17 +01:00
parent 590edc648a
commit 9b13d862c1
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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