diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-08 12:00:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 05:46:03 +0000 |
commit | afc755fa61cfd9645c4ed2507bdc3a06b721ed5c (patch) | |
tree | 927b4fa1f1deaf22362c13e43d16fd716f29e630 /vcl/source/gdi/bitmap3.cxx | |
parent | 026345eeb2aa9fca02bc055f28ebd34abd7ad680 (diff) |
loplugin:unusedenumconstants read-only constants in vcl (2)
Change-Id: Ia3da23e0ef2fa710403745bd11255ed001516da4
Reviewed-on: https://gerrit.libreoffice.org/34020
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/bitmap3.cxx')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 93c4ad94312b..b59543a20e17 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -922,18 +922,13 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag n //just use the fast scale rather than attempting to count unique colors in //the other converters and pass all the info down through //Bitmap::ImplMakeMono - if (nStartCount == 1 && nScaleFlag != BmpScaleFlag::NONE) + if (nStartCount == 1) nScaleFlag = BmpScaleFlag::Fast; bool bRetval(false); switch(nScaleFlag) { - case BmpScaleFlag::NONE : - { - bRetval = false; - break; - } case BmpScaleFlag::Fast : { bRetval = ImplScaleFast( rScaleX, rScaleY ); @@ -944,7 +939,6 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag n bRetval = ImplScaleInterpolate( rScaleX, rScaleY ); break; } - case BmpScaleFlag::Super: case BmpScaleFlag::Default: { if (GetSizePixel().Width() < 2 || GetSizePixel().Height() < 2) @@ -978,12 +972,6 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag n bRetval = aScaleConvolution.filter(*this); break; } - case BmpScaleFlag::Box : - { - vcl::BitmapScaleConvolution aScaleConvolution(rScaleX, rScaleY, vcl::ConvolutionKernelType::Box); - bRetval = aScaleConvolution.filter(*this); - break; - } } OSL_ENSURE(!bRetval || nStartCount == GetBitCount(), "Bitmap::Scale has changed the ColorDepth, this should *not* happen (!)"); |