[Libreoffice-commits] core.git: vcl/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 5 11:28:18 UTC 2019


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

New commits:
commit 2422dfd060fe0a4024b6410e436f2d4c358ece9b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Sep 5 11:16:35 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Sep 5 13:27:27 2019 +0200

    loplugin:simplifyconstruct
    
    Change-Id: Ia512cf70a51dd8f41060d4b4b12b120826b53ee9
    Reviewed-on: https://gerrit.libreoffice.org/78636
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index fbc18c08e7cd..267d2389e18a 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2359,7 +2359,7 @@ IMPL_LINK_NOARG(ToolBox, ImplUpdateHdl, Timer *, void)
 
 static void ImplDrawMoreIndicator(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
 {
-    const Image pImage = Image(StockImage::Yes, CHEVRON);
+    const Image pImage(StockImage::Yes, CHEVRON);
     Size aImageSize = pImage.GetSizePixel();
     long x = rRect.Left() + (rRect.getWidth() - aImageSize.Width())/2;
     long y = rRect.Top() + (rRect.getHeight() - aImageSize.Height())/2;


More information about the Libreoffice-commits mailing list