summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-09-05 11:16:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-09-05 13:27:27 +0200
commit2422dfd060fe0a4024b6410e436f2d4c358ece9b (patch)
tree6f0055bde4bc04cc5092dbb2b549699b7b7021db /vcl/source/window/toolbox.cxx
parent632ee9aae6d5f3cf08b6d6b2789310c20db713b7 (diff)
loplugin:simplifyconstruct
Change-Id: Ia512cf70a51dd8f41060d4b4b12b120826b53ee9 Reviewed-on: https://gerrit.libreoffice.org/78636 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx2
1 files changed, 1 insertions, 1 deletions
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;