diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 22:01:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 22:20:13 +0100 |
commit | 3cdd01aa1b889698768f2c53d736873f9f558e3b (patch) | |
tree | 971b051fa20120a43e962bbe1c28a41175afc55c /src/ConfigGlobal.cxx | |
parent | d25195447a3a690fa1d508871d4b15ade928b2b0 (diff) | |
download | mpd-3cdd01aa1b889698768f2c53d736873f9f558e3b.tar.gz mpd-3cdd01aa1b889698768f2c53d736873f9f558e3b.tar.xz mpd-3cdd01aa1b889698768f2c53d736873f9f558e3b.zip |
ConfigData: use std::vector for the block_param list
Diffstat (limited to 'src/ConfigGlobal.cxx')
-rw-r--r-- | src/ConfigGlobal.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ConfigGlobal.cxx b/src/ConfigGlobal.cxx index 01b8d09c5..d70a7f5bb 100644 --- a/src/ConfigGlobal.cxx +++ b/src/ConfigGlobal.cxx @@ -76,12 +76,10 @@ config_param_check(gpointer data, G_GNUC_UNUSED gpointer user_data) Silently ignore it here. */ return; - for (unsigned i = 0; i < param->num_block_params; i++) { - struct block_param *bp = ¶m->block_params[i]; - - if (!bp->used) + for (const auto &i : param->block_params) { + if (!i.used) g_warning("option '%s' on line %i was not recognized", - bp->name, bp->line); + i.name, i.line); } } |