1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 16:06: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
+2 -2
View File
@@ -44,7 +44,7 @@ class SQLiteService : public Provider
Anope::string database;
sqlite3 *sql;
sqlite3 *sql = nullptr;
Anope::string Escape(const Anope::string &query);
@@ -134,7 +134,7 @@ class ModuleSQLite : public Module
};
SQLiteService::SQLiteService(Module *o, const Anope::string &n, const Anope::string &d)
: Provider(o, n), database(d), sql(NULL)
: Provider(o, n), database(d)
{
int db = sqlite3_open_v2(database.c_str(), &this->sql, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, 0);
if (db != SQLITE_OK)