1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 17:23:13 +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 -4
View File
@@ -46,9 +46,7 @@ struct StackerInfo
/* Modes to be deleted */
std::list<std::pair<Mode *, Anope::string> > DelModes;
/* Bot this is sent from */
BotInfo *bi;
StackerInfo() : bi(NULL) { }
BotInfo *bi = nullptr;
/** Add a mode to this object
* @param mode The mode
@@ -742,7 +740,7 @@ void ModeManager::StackerDel(Mode *m)
}
}
Entry::Entry(const Anope::string &m, const Anope::string &fh) : name(m), mask(fh), cidr_len(0), family(0)
Entry::Entry(const Anope::string &m, const Anope::string &fh) : name(m), mask(fh)
{
Anope::string n, u, h;