diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-07 14:48:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-08 07:17:52 +0100 |
commit | 7daa249981e0d0b69f4f7564bfb6bc643f375039 (patch) | |
tree | e5fbb085f57dfbabcda7fcc30b7a44e08a59a796 /include/vcl | |
parent | f19f8d1a3c175045fa43a8a5e2a12dd55fedb4b8 (diff) |
sprinkle SAL_WARN_UNUSED over Bitmap/BitmapEx
Change-Id: If6fe5f05ecfc26c38890efde0f5e61edb7c3fbc5
Reviewed-on: https://gerrit.libreoffice.org/49359
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bitmap.hxx | 2 | ||||
-rw-r--r-- | include/vcl/bitmapex.hxx | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 2f74b71dd7b3..d4f290e35793 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -212,7 +212,7 @@ struct BitmapSystemData int mnHeight; }; -class VCL_DLLPUBLIC Bitmap +class SAL_WARN_UNUSED VCL_DLLPUBLIC Bitmap { public: diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index 1857e7608314..31b008a081b2 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -40,7 +40,7 @@ enum class TransparentType Bitmap }; -class VCL_DLLPUBLIC BitmapEx +class SAL_WARN_UNUSED VCL_DLLPUBLIC BitmapEx { public: @@ -371,6 +371,7 @@ public: @param bSmooth Defines if pixel interpolation is to be used to create the result */ + SAL_WARN_UNUSED_RESULT BitmapEx TransformBitmapEx( double fWidth, double fHeight, @@ -398,6 +399,7 @@ public: @return The transformed bitmap */ + SAL_WARN_UNUSED_RESULT BitmapEx getTransformed( const basegfx::B2DHomMatrix& rTransformation, const basegfx::B2DRange& rVisibleRange, @@ -409,8 +411,10 @@ public: @param rBColorModifierStack A ColrModifierStack which defines how each pixel has to be modified */ + SAL_WARN_UNUSED_RESULT BitmapEx ModifyBitmapEx( const basegfx::BColorModifierStack& rBColorModifierStack) const; + SAL_WARN_UNUSED_RESULT static BitmapEx AutoScaleBitmap( BitmapEx const & aBitmap, const long aStandardSize ); /// populate from a canvas implementation |