diff options
| author | 2021-04-18 04:37:51 +0100 | |
|---|---|---|
| committer | 2021-04-18 04:58:28 +0100 | |
| commit | 569324feeecea939854e45bbd44495b849fcfd59 (patch) | |
| tree | 38008340f746112ab17ebb8368f090aeac10aabd /src/extensible.cpp | |
| parent | Make the reason parameter to PartUser const. (diff) | |
Migrate collections from insert to emplace.
Diffstat (limited to 'src/extensible.cpp')
| -rw-r--r-- | src/extensible.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp index 5055dd091..f6434a777 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -111,7 +111,7 @@ void* ExtensionItem::GetRaw(const Extensible* container) const void* ExtensionItem::SetRaw(Extensible* container, void* value) { - auto result = container->extensions.insert(std::make_pair(this, value)); + auto result = container->extensions.emplace(this, value); if (result.second) return nullptr; |
