From 1bdc70103de256aa23a8afc54c9ea022ce790141 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 29 May 2020 17:54:19 +0200 Subject: Empty enum setting in configuration file In case we have an empty setting in the doxygen configuration file, where an enum value is expected like: ``` OUTPUT_LANGUAGE = ``` we get the warning: ``` warning: argument '(null)' for option OUTPUT_LANGUAGE is not a valid enum value Using the default: English! ``` The default value should immediately have been used. --- src/configimpl.l | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/configimpl.l b/src/configimpl.l index d07e25c..da94484 100644 --- a/src/configimpl.l +++ b/src/configimpl.l @@ -234,6 +234,11 @@ void ConfigBool::convertStrToVal() void ConfigEnum::convertStrToVal() { + if (m_value.isEmpty()) + { + m_value = m_defValue; + return; + } QCString val = m_value.stripWhiteSpace().lower(); const char *s=m_valueRange.first(); while (s) -- cgit v0.12