summaryrefslogtreecommitdiff
path: root/include/configreader.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2014-10-08 16:34:37 +0100
committerPeter Powell <petpow@saberuk.com>2014-10-13 06:18:14 +0100
commit6935ce2956fed99d5484da90e614b7126e5275d3 (patch)
tree35055bf79b871df09a988e6d1b005640b2f13101 /include/configreader.h
parent402a1bb010522a35600325c1a3084e092b40ca22 (diff)
Avoid calling methods on NULL pointers wherever possible.
The trick we use to allow this is undefined behaviour and is not liked by LLVM. We should stop using it but it has the potential to break to many things for a minor release.
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 1edacfe13..b01a979a7 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -197,6 +197,9 @@ class CoreExport ServerConfig
ConfigTagList ConfTags(const std::string& tag);
+ /** An empty configuration tag. */
+ ConfigTag* EmptyTag;
+
/** Error stream, contains error output from any failed configuration parsing.
*/
std::stringstream errstr;
@@ -527,6 +530,8 @@ class CoreExport ServerConfig
*/
ServerConfig();
+ ~ServerConfig();
+
/** Get server ID as string with required leading zeroes
*/
const std::string& GetSID();