diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 11:42:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 18:56:09 +0000 |
commit | 370613e5917366698d4d9ec078f79f9a48ce8b02 (patch) | |
tree | 72b3f81111abca3de4b9decc317ce064788449fe /vcl | |
parent | 36f2fd038d6dd281358db9d3161d7082d9559f4c (diff) |
warn about unused Images
Change-Id: I5502b28411282354019af51a09c860099c652006
Reviewed-on: https://gerrit.libreoffice.org/33348
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/outdevgrind.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 037d228e1e60..10cede7eeeac 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -972,7 +972,6 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) static Image ImplRotImage( const Image& rImage, long nAngle10 ) { - Image aRet; BitmapEx aRotBitmapEx( rImage.GetBitmapEx() ); aRotBitmapEx.Rotate( nAngle10, Color( COL_WHITE ) ); @@ -1011,7 +1010,6 @@ void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, long nAngle10 ) static Image ImplMirrorImage( const Image& rImage ) { - Image aRet; BitmapEx aMirrBitmapEx( rImage.GetBitmapEx() ); aMirrBitmapEx.Mirror( BmpMirrorFlags::Horizontal ); diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index 0e0e19df2519..f4c8c7dcdec0 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -138,7 +138,9 @@ void setupMethodStubs( functor_vector_type& res ) const BitmapEx aBitmapExAlpha( aBitmap, aBitmapAlien ); const BitmapEx aBitmapExAlphaAlien( aBitmapAlien, aBitmapAlien ); +#ifdef NEEDS_QUALIY_PARAMTER const Image aImage( aBitmapEx ); +#endif const Gradient aGradient(GradientStyle::Elliptical,aBlackColor,aWhiteColor); const Hatch aHatch(HatchStyle::Triple,aBlackColor,4,450); const Wallpaper aWallpaper( aWhiteColor ); |