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/ns_set.cpp | |
parent | 1a2da821064f8d869b999fb8e32ffeddfc82967b (diff) |
Use emplace() instead of insert(std::make_pair()).
Diffstat (limited to 'modules/commands/ns_set.cpp')
-rw-r--r-- | modules/commands/ns_set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp index 36fe49df1..b7588a495 100644 --- a/modules/commands/ns_set.cpp +++ b/modules/commands/ns_set.cpp @@ -1231,9 +1231,9 @@ class NSSet : public Module { size_t c = modes.find(','); if (c == Anope::string::npos) - nc->last_modes.insert(std::make_pair(modes, "")); + nc->last_modes.emplace(modes, ""); else - nc->last_modes.insert(std::make_pair(modes.substr(0, c), modes.substr(c + 1))); + nc->last_modes.emplace(modes.substr(0, c), modes.substr(c + 1)); } } } keep_modes; |