From e85b24bee0004f6e18c986fa718b2854fee57730 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2019 22:11:51 +0100 Subject: [PATCH] decoder/List: add `noexcept` --- src/decoder/DecoderList.cxx | 3 ++- src/decoder/DecoderList.hxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/decoder/DecoderList.cxx b/src/decoder/DecoderList.cxx index 71483900d..286136826 100644 --- a/src/decoder/DecoderList.cxx +++ b/src/decoder/DecoderList.cxx @@ -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(); diff --git a/src/decoder/DecoderList.hxx b/src/decoder/DecoderList.hxx index 81493f7f3..7f0313bd6 100644 --- a/src/decoder/DecoderList.hxx +++ b/src/decoder/DecoderList.hxx @@ -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 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]))