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_cgiirc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cgiirc.cpp') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index ad4eb8d4d..494743cd5 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -355,7 +355,7 @@ class ModuleCgiIRC { // The IP address should be looked up from the hex IP address. const std::string newident = tag->getString("newident", "gateway", ServerInstance->IsIdent); - identhosts.push_back(IdentHost(masks, newident)); + identhosts.emplace_back(masks, newident); } else if (stdalgo::string::equalsci(type, "webirc")) { @@ -374,7 +374,7 @@ class ModuleCgiIRC tag->source.str().c_str()); } - webirchosts.push_back(WebIRCHost(masks, fingerprint, password, passwordhash)); + webirchosts.emplace_back(masks, fingerprint, password, passwordhash); } else { -- cgit v1.3.1-10-gc9f91