From 1c3f5517fabc264d7b37935bd37197cdd68250ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 22:36:13 +0100 Subject: config/Option: convert to strictly-typed enum --- src/tag/TagConfig.cxx | 3 ++- src/tag/TagId3.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tag') diff --git a/src/tag/TagConfig.cxx b/src/tag/TagConfig.cxx index 49e6105cc..df40c2bc0 100644 --- a/src/tag/TagConfig.cxx +++ b/src/tag/TagConfig.cxx @@ -35,7 +35,8 @@ void TagLoadConfig() { - const char *value = config_get_string(CONF_METADATA_TO_USE, nullptr); + const char *value = config_get_string(ConfigOption::METADATA_TO_USE, + nullptr); if (value == nullptr) return; diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index 2d64924d3..ade1fd007 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -99,7 +99,8 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4) /* use encoding field here? */ const char *encoding; if (is_id3v1 && - (encoding = config_get_string(CONF_ID3V1_ENCODING, nullptr)) != nullptr) { + (encoding = config_get_string(ConfigOption::ID3V1_ENCODING, + nullptr)) != nullptr) { id3_latin1_t *isostr = id3_ucs4_latin1duplicate(ucs4); if (gcc_unlikely(isostr == nullptr)) return nullptr; -- cgit v1.2.3