diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-03-01 15:14:13 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2020-03-15 20:59:25 +0100 |
commit | dfeaeb202648414b87769ee671e7b271227a1eb2 (patch) | |
tree | ecbf1ca34909ae7a33407bab74dd54a4fc83fff4 | |
parent | cdb632d3ee9165032c1bc057a82413edf8179e07 (diff) |
vcl: prefer emplace to insert on std::map
Change-Id: I513c1bdb63a8a57a40b36c908dfb4387322f2cc3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90297
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 7afb1fb36e6d..691ed915c416 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3237,7 +3237,7 @@ void Window::SetLOKNotifier(const vcl::ILibreOfficeKitNotifier* pNotifier, bool // assign the LOK window id assert(mpWindowImpl->mnLOKWindowId == 0); mpWindowImpl->mnLOKWindowId = sLastLOKWindowId++; - GetLOKWindowsMap().insert(std::map<vcl::LOKWindowId, VclPtr<vcl::Window>>::value_type(mpWindowImpl->mnLOKWindowId, this)); + GetLOKWindowsMap().emplace(mpWindowImpl->mnLOKWindowId, this); } else mpWindowImpl->mbLOKParentNotifier = true; |