diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-08-24 20:42:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-08-24 20:42:56 (GMT) |
commit | 5b0de0b4249965d3ae2ca3e67f40ef810e0a9598 (patch) | |
tree | bfd280ef12015bf793b71236c30364c6618cbaf8 /src/config.h | |
parent | 8626ab32d671ffcdc75dffce04dd05a671cfb42c (diff) | |
download | Doxygen-5b0de0b4249965d3ae2ca3e67f40ef810e0a9598.zip Doxygen-5b0de0b4249965d3ae2ca3e67f40ef810e0a9598.tar.gz Doxygen-5b0de0b4249965d3ae2ca3e67f40ef810e0a9598.tar.bz2 |
Release-1.3.3-20030824
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 5bd4209..0201329 100644 --- a/src/config.h +++ b/src/config.h @@ -497,6 +497,7 @@ class Config { ConfigObsolete *option = new ConfigObsolete(ConfigOption::O_Obsolete); m_dict->insert(name,option); + m_obsolete->append(option); return option; } /*! @} */ @@ -539,23 +540,29 @@ class Config * to the configuration object */ void create(); + protected: + Config() { - m_options = new QList<ConfigOption>; - m_dict = new QDict<ConfigOption>(257); + m_options = new QList<ConfigOption>; + m_obsolete = new QList<ConfigOption>; + m_dict = new QDict<ConfigOption>(257); m_options->setAutoDelete(TRUE); + m_obsolete->setAutoDelete(TRUE); m_initialized = FALSE; create(); } ~Config() { delete m_options; + delete m_obsolete; delete m_dict; } private: QList<ConfigOption> *m_options; + QList<ConfigOption> *m_obsolete; QDict<ConfigOption> *m_dict; static Config *m_instance; bool m_initialized; |