summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/dtrans
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/unx/generic/dtrans
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/unx/generic/dtrans')
-rw-r--r--vcl/unx/generic/dtrans/bmp.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/generic/dtrans/bmp.cxx b/vcl/unx/generic/dtrans/bmp.cxx
index 8b7f342bfbb6..27dbfe579ef2 100644
--- a/vcl/unx/generic/dtrans/bmp.cxx
+++ b/vcl/unx/generic/dtrans/bmp.cxx
@@ -758,7 +758,8 @@ css::uno::Sequence<sal_Int8> x11::convertBitmapDepth(
case 4:
{
BitmapEx aBmpEx(bm);
- BitmapFilter::Filter(aBmpEx, BitmapSimpleColorQuantizationFilter(1<<4));
+ BitmapSimpleColorQuantizationFilter filter(1<<4);
+ BitmapFilter::Filter(aBmpEx, filter);
bm = aBmpEx.GetBitmap();
}
break;
@@ -766,7 +767,8 @@ css::uno::Sequence<sal_Int8> x11::convertBitmapDepth(
case 8:
{
BitmapEx aBmpEx(bm);
- BitmapFilter::Filter(aBmpEx, BitmapSimpleColorQuantizationFilter(1<<8));
+ BitmapSimpleColorQuantizationFilter filter(1<<8);
+ BitmapFilter::Filter(aBmpEx, filter);
bm = aBmpEx.GetBitmap();
}
break;