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/os_defcon.cpp | |
| parent | 1a2da821064f8d869b999fb8e32ffeddfc82967b (diff) | |
Use emplace() instead of insert(std::make_pair()).
Diffstat (limited to 'modules/commands/os_defcon.cpp')
| -rw-r--r-- | modules/commands/os_defcon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 2a9dcb4e3..7471eab29 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -72,7 +72,7 @@ struct DefconConfig bool SetDefConParam(const Anope::string &name, const Anope::string &buf) { - return DefConModesOnParams.insert(std::make_pair(name, buf)).second; + return DefConModesOnParams.emplace(name, buf).second; } void UnsetDefConParam(const Anope::string &name) |
