1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 13:03:14 +02:00

Remove undefined behaviour around checking if this is null.

This commit is contained in:
Sadie Powell
2021-11-30 10:54:10 +00:00
parent 17fa704278
commit 754c82d047
6 changed files with 17 additions and 35 deletions
+4 -1
View File
@@ -60,7 +60,7 @@ namespace Configuration
}
bool Set(const Anope::string &tag, const Anope::string &value);
const item_map* GetItems() const;
const item_map &GetItems() const;
};
template<> CoreExport const Anope::string Block::Get(const Anope::string &tag, const Anope::string& def) const;
@@ -129,6 +129,9 @@ namespace Configuration
std::map<Anope::string, Block *> modules;
Anope::map<Anope::string> bots;
/* Represents a missing tag. */
Block EmptyBlock;
Conf();
~Conf();