summaryrefslogtreecommitdiff
path: root/vcl/workben
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/workben
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/workben')
-rw-r--r--vcl/workben/outdevgrind.cxx3
-rw-r--r--vcl/workben/vcldemo.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx
index af8e813178e6..317762eaa861 100644
--- a/vcl/workben/outdevgrind.cxx
+++ b/vcl/workben/outdevgrind.cxx
@@ -131,8 +131,7 @@ void setupMethodStubs( functor_vector_type& res )
Bitmap aBitmapBW( aBitmap );
BitmapEx aTmpBmpEx(aBitmapBW);
- BitmapEmbossGreyFilter filter(0, 0);
- BitmapFilter::Filter(aTmpBmpEx, filter);
+ BitmapFilter::Filter(aTmpBmpEx, BitmapEmbossGreyFilter(0, 0));
aBitmapBW = aTmpBmpEx.GetBitmap();
Bitmap aBitmapAlien( Size( 100, 100 ), 8 );
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index b540f188bf9c..4a812d370eea 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -148,8 +148,7 @@ public:
maIntroBW = maIntro.GetBitmap();
BitmapEx aTmpBmpEx(maIntroBW);
- BitmapEmbossGreyFilter filter(0, 0);
- BitmapFilter::Filter(aTmpBmpEx, filter);
+ BitmapFilter::Filter(aTmpBmpEx, BitmapEmbossGreyFilter(0, 0));
maIntroBW = aTmpBmpEx.GetBitmap();
InitRenderers();