diff options
author | Joe George <joe@zeroc.com> | 2018-11-02 19:04:31 (GMT) |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2018-11-02 19:04:31 (GMT) |
commit | 1bbf1a37dfc67331a72918df3580818e7f21d0ae (patch) | |
tree | 17456c1f92616203975e20de9a6198fb585c07ad /src/configimpl.h | |
parent | e36d06860e9e1441a402ec8c9a7e03742eb85e9a (diff) | |
parent | 1b88f2417deadcd6c25a47bd6f37c524c61abefc (diff) | |
download | Doxygen-1bbf1a37dfc67331a72918df3580818e7f21d0ae.zip Doxygen-1bbf1a37dfc67331a72918df3580818e7f21d0ae.tar.gz Doxygen-1bbf1a37dfc67331a72918df3580818e7f21d0ae.tar.bz2 |
Merge remote-tracking branch 'doxygen/master'
Diffstat (limited to 'src/configimpl.h')
-rw-r--r-- | src/configimpl.h | 6 |
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. */ |