summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-10-08 10:01:05 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-10-08 10:01:05 (GMT)
commit887db516c1b0163139db971c5aa720804cc23f37 (patch)
tree59e7a16c2da4f74c7e167b7d34da1d64d9dac822 /src/configimpl.l
parent36eefaf9a5faeb828c0d99bffb731747a59f17fe (diff)
downloadDoxygen-887db516c1b0163139db971c5aa720804cc23f37.zip
Doxygen-887db516c1b0163139db971c5aa720804cc23f37.tar.gz
Doxygen-887db516c1b0163139db971c5aa720804cc23f37.tar.bz2
Bug 751700 - Main page absent in TOC of CHM, if PROJECT_NAME is empty
In case a string is empty the default should be taken and not left blank.
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index 3fb1360..3d4e05d 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -983,6 +983,15 @@ void ConfigImpl::convertStrToVal()
option->convertStrToVal();
}
}
+void ConfigImpl::emptyValueToDefault()
+{
+ QListIterator<ConfigOption> it = iterator();
+ ConfigOption *option;
+ for (;(option=it.current());++it)
+ {
+ option->emptyValueToDefault();
+ }
+}
static void substEnvVarsInString(QCString &s)
{
@@ -1854,7 +1863,7 @@ void Config::writeTemplate(FTextStream &t,bool shortList,bool update)
void Config::compareDoxyfile(FTextStream &t)
{
- postProcess(FALSE);
+ postProcess(FALSE, TRUE);
ConfigImpl::instance()->compareDoxyfile(t);
}
@@ -1863,9 +1872,10 @@ bool Config::parse(const char *fileName,bool update)
return ConfigImpl::instance()->parse(fileName,update);
}
-void Config::postProcess(bool clearHeaderAndFooter)
+void Config::postProcess(bool clearHeaderAndFooter, bool compare)
{
ConfigImpl::instance()->substituteEnvironmentVars();
+ if (!compare)ConfigImpl::instance()->emptyValueToDefault();
ConfigImpl::instance()->convertStrToVal();
// avoid bootstrapping issues when the config file already