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:
+2
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user