diff options
author | Max Kellermann <max@duempel.org> | 2014-02-19 23:57:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-20 00:04:23 +0100 |
commit | 008723c62fe9686812758dfffb06d59f998f6204 (patch) | |
tree | 6bb222d69c3e13fc29a6b1ac449b7815944036db /src/output/MultipleOutputs.cxx | |
parent | 9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff) | |
download | mpd-008723c62fe9686812758dfffb06d59f998f6204.tar.gz mpd-008723c62fe9686812758dfffb06d59f998f6204.tar.xz mpd-008723c62fe9686812758dfffb06d59f998f6204.zip |
ConfigGlobal: eliminate function config_get_next_param()
Diffstat (limited to '')
-rw-r--r-- | src/output/MultipleOutputs.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index 10e3e3bd5..2791e7045 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -73,9 +73,8 @@ LoadOutput(EventLoop &event_loop, MixerListener &mixer_listener, void MultipleOutputs::Configure(EventLoop &event_loop, PlayerControl &pc) { - const config_param *param = nullptr; - while ((param = config_get_next_param(CONF_AUDIO_OUTPUT, - param)) != nullptr) { + for (const config_param *param = config_get_param(CONF_AUDIO_OUTPUT); + param != nullptr; param = param->next) { auto output = LoadOutput(event_loop, mixer_listener, pc, *param); if (FindByName(output->name) != nullptr) |