diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 14:33:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 17:16:34 +0200 |
commit | bce47223099bb3349d96af9d6b1fe88bcdd539df (patch) | |
tree | 21e71197cf83f80657914bb529c459208a01547a /vcl/workben | |
parent | f4d4b100ffd18993d4eab1bcd52fe12b7f8f3e32 (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/workben')
-rw-r--r-- | vcl/workben/outdevgrind.cxx | 3 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index 317762eaa861..af8e813178e6 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -131,7 +131,8 @@ void setupMethodStubs( functor_vector_type& res ) Bitmap aBitmapBW( aBitmap ); BitmapEx aTmpBmpEx(aBitmapBW); - BitmapFilter::Filter(aTmpBmpEx, BitmapEmbossGreyFilter(0, 0)); + BitmapEmbossGreyFilter filter(0, 0); + BitmapFilter::Filter(aTmpBmpEx, filter); aBitmapBW = aTmpBmpEx.GetBitmap(); Bitmap aBitmapAlien( Size( 100, 100 ), 8 ); diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 4a812d370eea..b540f188bf9c 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -148,7 +148,8 @@ public: maIntroBW = maIntro.GetBitmap(); BitmapEx aTmpBmpEx(maIntroBW); - BitmapFilter::Filter(aTmpBmpEx, BitmapEmbossGreyFilter(0, 0)); + BitmapEmbossGreyFilter filter(0, 0); + BitmapFilter::Filter(aTmpBmpEx, filter); maIntroBW = aTmpBmpEx.GetBitmap(); InitRenderers(); |