1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 17:36:38 +02:00

Use C++11 style class/struct initialisation.

This commit is contained in:
Sadie Powell
2022-01-03 18:34:16 +00:00
parent dfcc025a19
commit 7531e90499
64 changed files with 188 additions and 230 deletions
+5 -5
View File
@@ -63,10 +63,10 @@ class DBSQL : public Module, public Pipe
bool import;
std::set<Serializable *> updated_items;
bool shutting_down;
bool loading_databases;
bool loaded;
bool imported;
bool shutting_down = false;
bool loading_databases = false;
bool loaded = false;
bool imported = false;
void RunBackground(const Query &q, Interface *iface = NULL)
{
@@ -90,7 +90,7 @@ class DBSQL : public Module, public Pipe
}
public:
DBSQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE | VENDOR), sql("", ""), sqlinterface(this), shutting_down(false), loading_databases(false), loaded(false), imported(false)
DBSQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE | VENDOR), sql("", ""), sqlinterface(this)
{