mirror of
https://github.com/anope/anope.git
synced 2026-07-08 19:03:13 +02:00
Use emplace() instead of insert(std::make_pair()).
This commit is contained in:
@@ -1378,7 +1378,7 @@ class IRCDMessageMetadata : IRCDMessage
|
||||
Anope::string modechr, modelimit;
|
||||
while (limitstream.GetToken(modechr) && limitstream.GetToken(modelimit))
|
||||
{
|
||||
limits.insert(std::make_pair(modechr[0], convertTo<unsigned>(modelimit)));
|
||||
limits.emplace(modechr[0], convertTo<unsigned>(modelimit));
|
||||
}
|
||||
maxlist.Set(c, limits);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user