config/Option: convert to strictly-typed enum

This commit is contained in:
Max Kellermann
2015-01-21 22:36:13 +01:00
parent 10972da060
commit 1c3f5517fa
36 changed files with 153 additions and 132 deletions

View File

@@ -35,7 +35,8 @@ static bool
filter_chain_append_new(Filter &chain, const char *template_name, Error &error)
{
const struct config_param *cfg =
config_find_block(CONF_AUDIO_FILTER, "name", template_name);
config_find_block(ConfigOption::AUDIO_FILTER, "name",
template_name);
if (cfg == nullptr) {
error.Format(config_domain,
"filter template not found: %s",