diff options
author | albert-github <albert.tests@gmail.com> | 2020-05-29 15:54:19 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-05-29 15:54:19 (GMT) |
commit | 1bdc70103de256aa23a8afc54c9ea022ce790141 (patch) | |
tree | 92f80c5c5fd445ff34981b9120da0965b31d474d /src | |
parent | 1705a1442dfa83d6c442bb45ed0d6e76f135ee5a (diff) | |
download | Doxygen-1bdc70103de256aa23a8afc54c9ea022ce790141.zip Doxygen-1bdc70103de256aa23a8afc54c9ea022ce790141.tar.gz Doxygen-1bdc70103de256aa23a8afc54c9ea022ce790141.tar.bz2 |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/configimpl.l | 5 |
1 files changed, 5 insertions, 0 deletions
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) |