mirror of
https://github.com/anope/anope.git
synced 2026-07-04 03:03:12 +02:00
Use emplace() instead of insert(std::make_pair()).
This commit is contained in:
+1
-1
@@ -304,7 +304,7 @@ void Channel::SetModeInternal(MessageSource &setter, ChannelMode *ocm, const Ano
|
||||
else if (this->HasMode(cm->name, param))
|
||||
return;
|
||||
|
||||
this->modes.insert(std::make_pair(cm->name, param));
|
||||
this->modes.emplace(cm->name, param);
|
||||
|
||||
if (param.empty() && cm->type != MODE_REGULAR)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user