summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 22:06:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 11:15:36 +0100
commit33c2a79f141cd20078f82dba5a9292dd6046df6e (patch)
tree389679e9164b6abe7c67996133ff15f5cc61ad0d /vcl/qt5
parente23be78a6a98c3eb4bef0d598369238ee1ec0cf5 (diff)
clang-tidy: performance-unnecessary-copy-initialization in vcl
Change-Id: Idb09d0d256601fb3b9e822404b2f57f41d04d713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176443 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtFilePicker.cxx2
-rw-r--r--vcl/qt5/QtGraphics_GDI.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/QtFilePicker.cxx b/vcl/qt5/QtFilePicker.cxx
index 369e26054698..9ab02ccc35cc 100644
--- a/vcl/qt5/QtFilePicker.cxx
+++ b/vcl/qt5/QtFilePicker.cxx
@@ -386,7 +386,7 @@ void SAL_CALL QtFilePicker::appendFilterGroup(const OUString& rGroupTitle,
const sal_uInt16 length = filters.getLength();
for (sal_uInt16 i = 0; i < length; ++i)
{
- beans::StringPair aPair = filters[i];
+ const beans::StringPair& aPair = filters[i];
appendFilter(aPair.First, aPair.Second);
}
}
diff --git a/vcl/qt5/QtGraphics_GDI.cxx b/vcl/qt5/QtGraphics_GDI.cxx
index bbfde8e1f22e..c49d82c53e0d 100644
--- a/vcl/qt5/QtGraphics_GDI.cxx
+++ b/vcl/qt5/QtGraphics_GDI.cxx
@@ -383,7 +383,7 @@ bool QtGraphicsBackend::drawPolyLine(const basegfx::B2DHomMatrix& rObjectToDevic
// but this NEEDS to be checked/verified
for (sal_uInt32 a(0); a < aPolyPolygonLine.count(); a++)
{
- const basegfx::B2DPolygon aPolyLine(aPolyPolygonLine.getB2DPolygon(a));
+ const basegfx::B2DPolygon& aPolyLine(aPolyPolygonLine.getB2DPolygon(a));
AddPolygonToPath(aPath, aPolyLine, aPolyLine.isClosed(), !getAntiAlias(), true);
}