aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-30 19:44:07 +0100
committerGravatar Sadie Powell2021-03-30 19:44:07 +0100
commit49339528112c57de5e52f2e8bbea91bf37c3704a (patch)
tree6e8088af58b4df52958e8a691a6d36386d09df66 /src/modules/m_cloaking.cpp
parentFix the setter and set time of list modes being lost on netburst. (diff)
Use emplace_back where possible.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index cf4c4ddb1..351339789 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -464,10 +464,10 @@ class ModuleCloaking : public Module
if (stdalgo::string::equalsci(mode, "half"))
{
unsigned int domainparts = tag->getUInt("domainparts", 3, 1, 10);
- newcloaks.push_back(CloakInfo(MODE_HALF_CLOAK, key, prefix, suffix, ignorecase, domainparts));
+ newcloaks.emplace_back(MODE_HALF_CLOAK, key, prefix, suffix, ignorecase, domainparts);
}
else if (stdalgo::string::equalsci(mode, "full"))
- newcloaks.push_back(CloakInfo(MODE_OPAQUE, key, prefix, suffix, ignorecase));
+ newcloaks.emplace_back(MODE_OPAQUE, key, prefix, suffix, ignorecase);
else
throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->source.str());
}