aboutsummaryrefslogtreecommitdiffstats
path: root/include/clientprotocol.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-18 04:37:51 +0100
committerGravatar Sadie Powell2021-04-18 04:58:28 +0100
commit569324feeecea939854e45bbd44495b849fcfd59 (patch)
tree38008340f746112ab17ebb8368f090aeac10aabd /include/clientprotocol.h
parentMake the reason parameter to PartUser const. (diff)
Migrate collections from insert to emplace.
Diffstat (limited to 'include/clientprotocol.h')
-rw-r--r--include/clientprotocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 9bb8f47e2..c5b880d4e 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -415,7 +415,7 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource
*/
void AddTag(const std::string& tagname, MessageTagProvider* tagprov, const std::string& val, void* tagdata = NULL)
{
- tags.insert(std::make_pair(tagname, MessageTagData(tagprov, val, tagdata)));
+ tags.emplace(tagname, MessageTagData(tagprov, val, tagdata));
}
/** Add all tags in a TagMap to the tags in this message. Existing tags will not be overwritten.