diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/configuration.cpp | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz plus-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index ef3c6cf2a..3d6f17ced 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -39,9 +39,9 @@ StringIntMap optionsCount; #define GETLOG() if (logger) {logger->log("config get: " + key); \ if (mIsMain) optionsCount[key] = 1; } -#else +#else // DEBUG_CONFIG #define GETLOG() -#endif +#endif // DEBUG_CONFIG Configuration config; // XML file configuration reader Configuration serverConfig; // XML file server configuration reader @@ -342,9 +342,10 @@ ConfigurationObject::ConfigurationObject() : mContainerOptions(), mLogKeys(false), mIsMain(false) -#else +#else // DEBUG_CONFIG + mContainerOptions() -#endif +#endif // DEBUG_CONFIG { } @@ -366,7 +367,7 @@ Configuration::Configuration() : #ifdef DEBUG_CONFIG mLogKeys = false; mIsMain = false; -#endif +#endif // DEBUG_CONFIG } void Configuration::cleanDefaults() @@ -807,7 +808,8 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer) if (optionsCount.find(i->first) == optionsCount.end()) logger->log("unused configuration option: " + i->first); } -#endif +#endif // DEBUG_CONFIG + XmlTextWriterStartElement(writer, "option"); XmlTextWriterWriteAttribute(writer, "name", i->first.c_str()); XmlTextWriterWriteAttribute(writer, "value", i->second.c_str()); @@ -921,7 +923,7 @@ void Configuration::checkListeners(ConfigListener *const listener, } } } -#endif +#endif // ENABLE_CHECKS void Configuration::removeListeners(ConfigListener *const listener) { |