diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-03-01 15:14:13 -0500 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-23 16:58:25 +0100 |
commit | b2def0d79a38b6d050ab1016e1be1b873a1a5a6e (patch) | |
tree | ba469ddf29e0513a42ea36750440115ced56fbd4 /vcl | |
parent | 677f96f7f849f8a098e389a06356eb0c38809fa5 (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.cxx | 2 |
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; |