config/Option: convert to strictly-typed enum
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user