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 /src/xline.cpp | |
| parent | 1a2da821064f8d869b999fb8e32ffeddfc82967b (diff) | |
Use emplace() instead of insert(std::make_pair()).
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index ba402fe59..fb98f9b24 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -288,7 +288,7 @@ const std::vector<XLine *> &XLineManager::GetList() const void XLineManager::AddXLine(XLine *x) { if (!x->id.empty()) - XLinesByUID->insert(std::make_pair(x->id, x)); + XLinesByUID->emplace(x->id, x); this->xlines->push_back(x); x->manager = this; } |
