diff options
author | Sadie Powell <sadie@witchery.services> | 2022-09-12 20:33:21 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-12-09 16:50:29 +0000 |
commit | 5fa3d8f9297f50e25a7bad6a9bde91b9024330de (patch) | |
tree | 26cd885ac78b345361471fa55a7d0801449ede3e /modules/commands/cs_flags.cpp | |
parent | 1a2da821064f8d869b999fb8e32ffeddfc82967b (diff) |
Use emplace() instead of insert(std::make_pair()).
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r-- | modules/commands/cs_flags.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp index 020f42a7f..a241f6dbc 100644 --- a/modules/commands/cs_flags.cpp +++ b/modules/commands/cs_flags.cpp @@ -451,7 +451,7 @@ class CommandCSFlags : public Command typedef std::multimap<char, Anope::string, ci::less> reverse_map; reverse_map reverse; for (std::map<Anope::string, char>::iterator it = defaultFlags.begin(), it_end = defaultFlags.end(); it != it_end; ++it) - reverse.insert(std::make_pair(it->second, it->first)); + reverse.emplace(it->second, it->first); for (reverse_map::iterator it = reverse.begin(), it_end = reverse.end(); it != it_end; ++it) { |