summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/BitmapTest.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-06 14:33:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-06 17:16:34 +0200
commitbce47223099bb3349d96af9d6b1fe88bcdd539df (patch)
tree21e71197cf83f80657914bb529c459208a01547a /vcl/qa/cppunit/BitmapTest.cxx
parentf4d4b100ffd18993d4eab1bcd52fe12b7f8f3e32 (diff)
clang-tidy bugprone-use-after-move in BitmapFilter::Filter
which necesitated changing the API and hence the call sites Change-Id: Id417a235bf9b2bf1a3d152dc6600c0635486cafa Reviewed-on: https://gerrit.libreoffice.org/60086 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa/cppunit/BitmapTest.cxx')
-rw-r--r--vcl/qa/cppunit/BitmapTest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx
index 706fb1f58690..8da2a58dd67d 100644
--- a/vcl/qa/cppunit/BitmapTest.cxx
+++ b/vcl/qa/cppunit/BitmapTest.cxx
@@ -213,7 +213,8 @@ void BitmapTest::testMonochrome()
Bitmap aBmp = createTestBitmap();
BitmapEx aBmpEx(aBmp);
- BitmapFilter::Filter(aBmpEx, BitmapMonochromeFilter(63));
+ BitmapMonochromeFilter filter(63);
+ BitmapFilter::Filter(aBmpEx, filter);
aBmp = aBmpEx.GetBitmap();
BitmapReadAccess aBmpReadAccess(aBmp);