From 5fa3d8f9297f50e25a7bad6a9bde91b9024330de Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 12 Sep 2022 20:33:21 +0100 Subject: Use emplace() instead of insert(std::make_pair()). --- include/modules/xmlrpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') diff --git a/include/modules/xmlrpc.h b/include/modules/xmlrpc.h index 9a197f4f6..380e22ab6 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -21,7 +21,7 @@ class XMLRPCRequest HTTPReply& r; XMLRPCRequest(HTTPReply &_r) : r(_r) { } - inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.insert(std::make_pair(dname, ddata)); } + inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.emplace(dname, ddata); } inline const std::map &get_replies() { return this->replies; } }; -- cgit