summaryrefslogtreecommitdiffstats
path: root/src/configimpl.h
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.h
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.h')
-rw-r--r--src/configimpl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configimpl.h b/src/configimpl.h
index ef8bb21..1594d47 100644
--- a/src/configimpl.h
+++ b/src/configimpl.h
@@ -75,6 +75,7 @@ class ConfigOption
virtual void writeTemplate(FTextStream &t,bool sl,bool upd) = 0;
virtual void compareDoxyfile(FTextStream &t) = 0;
virtual void convertStrToVal() {}
+ virtual void emptyValueToDefault() {}
virtual void substEnvVars() = 0;
virtual void init() {}
@@ -189,6 +190,7 @@ class ConfigString : public ConfigOption
void compareDoxyfile(FTextStream &t);
void substEnvVars();
void init() { m_value = m_defValue.copy(); }
+ void emptyValueToDefault() { if(m_value.isEmpty()) m_value=m_defValue; };
private:
QCString m_value;
@@ -491,6 +493,10 @@ class ConfigImpl
*/
void convertStrToVal();
+ /*! Sets default value in case value is empty
+ */
+ void emptyValueToDefault();
+
/*! Replaces references to environment variable by the actual value
* of the environment variable.
*/