summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/animate.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-22 15:52:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-24 07:56:01 +0100
commitde8f6b25de6fbe813fe172542e7eff1596b37335 (patch)
tree4a2864c87395463391cd2ad40c4f1ada962f44e9 /vcl/source/gdi/animate.cxx
parent182a3c7e12a0f56d664deaf67d17bc51eef6299d (diff)
loplugin:unused-returns in vcl
Change-Id: I507320900a47f604d17ed7d402d531a7cbdf744e Reviewed-on: https://gerrit.libreoffice.org/48331 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/animate.cxx')
-rw-r--r--vcl/source/gdi/animate.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 0cb67808398a..f226b9d699c5 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -503,7 +503,7 @@ void Animation::ResetLoopCount()
mbLoopTerminated = false;
}
-bool Animation::Convert( BmpConversion eConversion )
+void Animation::Convert( BmpConversion eConversion )
{
SAL_WARN_IF( IsInAnimation(), "vcl", "Animation modified while it is animated" );
@@ -518,10 +518,6 @@ bool Animation::Convert( BmpConversion eConversion )
maBitmapEx.Convert( eConversion );
}
- else
- bRet = false;
-
- return bRet;
}
bool Animation::ReduceColors( sal_uInt16 nNewColorCount )
@@ -566,7 +562,7 @@ bool Animation::Invert()
return bRet;
}
-bool Animation::Mirror( BmpMirrorFlags nMirrorFlags )
+void Animation::Mirror( BmpMirrorFlags nMirrorFlags )
{
SAL_WARN_IF( IsInAnimation(), "vcl", "Animation modified while it is animated" );
@@ -595,13 +591,9 @@ bool Animation::Mirror( BmpMirrorFlags nMirrorFlags )
maBitmapEx.Mirror( nMirrorFlags );
}
}
- else
- bRet = false;
-
- return bRet;
}
-bool Animation::Adjust( short nLuminancePercent, short nContrastPercent,
+void Animation::Adjust( short nLuminancePercent, short nContrastPercent,
short nChannelRPercent, short nChannelGPercent, short nChannelBPercent,
double fGamma, bool bInvert )
{
@@ -628,10 +620,6 @@ bool Animation::Adjust( short nLuminancePercent, short nContrastPercent,
nChannelRPercent, nChannelGPercent, nChannelBPercent,
fGamma, bInvert );
}
- else
- bRet = false;
-
- return bRet;
}
bool Animation::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterParam )