From 569324feeecea939854e45bbd44495b849fcfd59 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Apr 2021 04:37:51 +0100 Subject: Migrate collections from insert to emplace. --- include/clientprotocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/clientprotocol.h') 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. -- cgit v1.3.1-10-gc9f91