summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/mtfxmldump.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/mtfxmldump.cxx')
-rw-r--r--vcl/source/gdi/mtfxmldump.cxx4
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()));