summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2020-03-01 15:14:13 -0500
committerMichael Meeks <michael.meeks@collabora.com>2020-05-23 16:58:25 +0100
commitb2def0d79a38b6d050ab1016e1be1b873a1a5a6e (patch)
treeba469ddf29e0513a42ea36750440115ced56fbd4 /vcl
parent677f96f7f849f8a098e389a06356eb0c38809fa5 (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>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index df73e936e8a8..120087f21267 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3190,7 +3190,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;