summaryrefslogtreecommitdiff
path: root/include/vcl/bitmapex.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 14:48:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-08 07:17:52 +0100
commit7daa249981e0d0b69f4f7564bfb6bc643f375039 (patch)
treee5fbb085f57dfbabcda7fcc30b7a44e08a59a796 /include/vcl/bitmapex.hxx
parentf19f8d1a3c175045fa43a8a5e2a12dd55fedb4b8 (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/bitmapex.hxx')
-rw-r--r--include/vcl/bitmapex.hxx6
1 files changed, 5 insertions, 1 deletions
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