summaryrefslogtreecommitdiff
path: root/vcl/source/graphic/UnoGraphicTransformer.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-10 12:37:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-10 16:23:59 +0200
commit40110d917b26f0d0e84938df2792abfedb461c45 (patch)
tree824313be0bc660c290b610921932b4c33f2e3321 /vcl/source/graphic/UnoGraphicTransformer.cxx
parent8d831cc01daaed6937fc126dc5671ae58e8c027e (diff)
No more need for extra local variables
...after 453fde35bb838febf73bfda0bd981ee270c9b12e "BitmapFilter::execute can be const". This reverts the call-site changes of bce47223099bb3349d96af9d6b1fe88bcdd539df "clang-tidy bugprone-use-after-move in BitmapFilter::Filter" again. Change-Id: I5ce4eb7ddce90fb779ddfb1c5864fd4785708175 Reviewed-on: https://gerrit.libreoffice.org/60255 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source/graphic/UnoGraphicTransformer.cxx')
-rw-r--r--vcl/source/graphic/UnoGraphicTransformer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/graphic/UnoGraphicTransformer.cxx b/vcl/source/graphic/UnoGraphicTransformer.cxx
index b749014ffe44..2fba69d01c93 100644
--- a/vcl/source/graphic/UnoGraphicTransformer.cxx
+++ b/vcl/source/graphic/UnoGraphicTransformer.cxx
@@ -122,8 +122,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL GraphicTransformer::applyDuotone(
Bitmap aBitmap( aBitmapEx.GetBitmap() );
BitmapEx aTmpBmpEx(aBitmap);
- BitmapDuoToneFilter filter(static_cast<sal_uLong>(nColorOne), static_cast<sal_uLong>(nColorTwo));
- BitmapFilter::Filter(aTmpBmpEx, filter);
+ BitmapFilter::Filter(aTmpBmpEx, BitmapDuoToneFilter(static_cast<sal_uLong>(nColorOne), static_cast<sal_uLong>(nColorTwo)));
aBitmap = aTmpBmpEx.GetBitmap();
aReturnGraphic = ::Graphic( BitmapEx( aBitmap, aMask ) );