summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-03 09:29:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-03 14:03:54 +0200
commit7cc1d3437a48140382773bf41401a46a3ced4706 (patch)
tree5e038178bb0b2699bb9314bd02fb7e197597ecb2 /vcl/qt5
parentb912eafa33227a5622c5a4310948cfa07c984726 (diff)
loplugin:unnecessaryparen small improvement
when calling a function, and passing only one arg, but the function has defaulted args, we were ignoring this case. Change-Id: I86517f18e30531127664088ddc09ef96dbd8bdf5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115033 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/Qt5Menu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index b743197c8aa6..75ab745de2b4 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -650,7 +650,7 @@ void Qt5Menu::ShowCloseButton(bool bShow)
aIcon = QIcon::fromTheme("window-close-symbolic");
else
aIcon = QIcon(
- QPixmap::fromImage((toQImage(Image(StockImage::Yes, SV_RESID_BITMAP_CLOSEDOC)))));
+ QPixmap::fromImage(toQImage(Image(StockImage::Yes, SV_RESID_BITMAP_CLOSEDOC))));
pButton = new QPushButton(mpQMenuBar);
pButton->setIcon(aIcon);
pButton->setFlat(true);