summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-09 13:24:44 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-12-10 11:02:32 +0100
commit5b0e9e8c18205dd9b06cbcec146cefa1acef4f32 (patch)
treecff47282ec1a3b659b0c317666852e8e4f662a83 /vcl/qa
parent63b8d83fd0d135af4ac04f78d26bfd3322ab65f6 (diff)
return value by simply returning it
Change-Id: I0c3443f182db697d12fb8bc8a356d989b62847df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126610 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/skia/skia.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/skia/skia.cxx b/vcl/qa/cppunit/skia/skia.cxx
index 21e3d0baf696..f2990d3811fc 100644
--- a/vcl/qa/cppunit/skia/skia.cxx
+++ b/vcl/qa/cppunit/skia/skia.cxx
@@ -500,12 +500,10 @@ void SkiaTest::testChecksum()
// The optimized changing of images to greyscale should change the checksum.
SkiaSalBitmap* skiaBitmap2 = dynamic_cast<SkiaSalBitmap*>(bitmap.ImplGetSalBitmap().get());
skiaBitmap2->unittestResetToImage();
- BitmapChecksum checksum6;
- skiaBitmap2->GetChecksum(checksum6);
+ BitmapChecksum checksum6 = skiaBitmap2->GetChecksum();
CPPUNIT_ASSERT_EQUAL(checksum5, checksum6);
CPPUNIT_ASSERT(skiaBitmap2->ConvertToGreyscale());
- BitmapChecksum checksum7;
- skiaBitmap2->GetChecksum(checksum7);
+ BitmapChecksum checksum7 = skiaBitmap2->GetChecksum();
CPPUNIT_ASSERT(checksum7 != checksum6);
}