From 49339528112c57de5e52f2e8bbea91bf37c3704a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Mar 2021 19:44:07 +0100 Subject: Use emplace_back where possible. --- src/modules/m_cloaking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cloaking.cpp') 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 ; acceptable values are 'half' and 'full', at " + tag->source.str()); } -- cgit v1.3.1-10-gc9f91