Commit e85b24be authored by Max Kellermann's avatar Max Kellermann

decoder/List: add `noexcept`

parent 9e73ea77
......@@ -152,7 +152,8 @@ decoder_plugin_init_all(const ConfigData &config)
}
}
void decoder_plugin_deinit_all(void)
void
decoder_plugin_deinit_all() noexcept
{
decoder_plugins_for_each_enabled([=](const DecoderPlugin &plugin){
plugin.Finish();
......
......@@ -40,11 +40,11 @@ decoder_plugin_init_all(const ConfigData &config);
/* this is where we "unload" all the "plugins" */
void
decoder_plugin_deinit_all();
decoder_plugin_deinit_all() noexcept;
template<typename F>
static inline const DecoderPlugin *
decoder_plugins_find(F f)
decoder_plugins_find(F f) noexcept
{
for (unsigned i = 0; decoder_plugins[i] != nullptr; ++i)
if (decoder_plugins_enabled[i] && f(*decoder_plugins[i]))
......
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