diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-11 22:06:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-12 11:15:36 +0100 |
commit | 33c2a79f141cd20078f82dba5a9292dd6046df6e (patch) | |
tree | 389679e9164b6abe7c67996133ff15f5cc61ad0d /vcl/source/gdi/mtfxmldump.cxx | |
parent | e23be78a6a98c3eb4bef0d598369238ee1ec0cf5 (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/source/gdi/mtfxmldump.cxx')
-rw-r--r-- | vcl/source/gdi/mtfxmldump.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/mtfxmldump.cxx b/vcl/source/gdi/mtfxmldump.cxx index 3bd60f8ef11f..dee6bb098e5e 100644 --- a/vcl/source/gdi/mtfxmldump.cxx +++ b/vcl/source/gdi/mtfxmldump.cxx @@ -594,7 +594,7 @@ OString toHexString(const std::vector<unsigned char>& a) void writeBitmapContentChecksum(tools::XmlWriter& rWriter, Bitmap const& rBitmap) { - Bitmap aBitmap(rBitmap); + const Bitmap& aBitmap(rBitmap); comphelper::Hash aHashEngine(comphelper::HashType::SHA1); BitmapScopedReadAccess pReadAccess(aBitmap); @@ -659,7 +659,7 @@ void MetafileXmlDump::dump(const GDIMetaFile& rMetaFile, SvStream& rStream) void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, tools::XmlWriter& rWriter) { - MapMode aMtfMapMode = rMetaFile.GetPrefMapMode(); + const MapMode& aMtfMapMode = rMetaFile.GetPrefMapMode(); rWriter.attribute("mapunit", convertMapUnitToString(aMtfMapMode.GetMapUnit())); writePoint(rWriter, aMtfMapMode.GetOrigin()); rWriter.attribute("scalex", convertFractionToString(aMtfMapMode.GetScaleX())); |