[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - vcl/source

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 15 17:53:06 UTC 2020


 vcl/source/window/window.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 89549af5fc4c3517c03140d073ef86e1ae7b5744
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sun Mar 1 15:14:13 2020 -0500
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Sun Mar 15 18:52:35 2020 +0100

    vcl: prefer emplace to insert on std::map
    
    Change-Id: I513c1bdb63a8a57a40b36c908dfb4387322f2cc3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90300
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index a0e49fbfcfa0..0a4a79a16d15 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3202,7 +3202,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;


More information about the Libreoffice-commits mailing list