summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:35:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:35:46 +0200
commit806a2609e5a1436667a6ad4aa93d14dbdd61c302 (patch)
treeb7e01c98cf74153df4000f216cb96a84342ca6db /basegfx/source
parentc8fd385d6100d7b0ef2db3c5f4f1871470c65689 (diff)
loplugin:casttovoid: basegfx
Change-Id: I5a7723a9b0ce64969a96a3bccb47b380a138b69c
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/range/b2drangeclipper.cxx2
-rw-r--r--basegfx/source/tools/keystoplerp.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx
index a8492698ba16..936e31823283 100644
--- a/basegfx/source/range/b2drangeclipper.cxx
+++ b/basegfx/source/range/b2drangeclipper.cxx
@@ -345,8 +345,6 @@ namespace basegfx
rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_LEFT);
const bool isSweepLineEnteringRect(
rEvent.getEdgeType() == SweepLineEvent::STARTING_EDGE);
- (void)isActiveEdgeProceedLeft;
- (void)isSweepLineEnteringRect;
OSL_ENSURE( isSweepLineEnteringRect == isActiveEdgeProceedLeft,
"ImplPolygon::intersect(): sweep initial own edge hit: wrong polygon order" );
diff --git a/basegfx/source/tools/keystoplerp.cxx b/basegfx/source/tools/keystoplerp.cxx
index 2ffede92ef9a..e68bb1b60bf6 100644
--- a/basegfx/source/tools/keystoplerp.cxx
+++ b/basegfx/source/tools/keystoplerp.cxx
@@ -25,7 +25,6 @@
static void validateInput(const std::vector<double>& rKeyStops)
{
- (void)rKeyStops;
#ifdef DBG_UTIL
OSL_ENSURE( rKeyStops.size() > 1,
"KeyStopLerp::KeyStopLerp(): key stop vector must have two entries or more" );
@@ -36,6 +35,8 @@ static void validateInput(const std::vector<double>& rKeyStops)
if( rKeyStops[i-1] > rKeyStops[i] )
OSL_FAIL( "KeyStopLerp::KeyStopLerp(): time vector is not sorted in ascending order!" );
}
+#else
+ (void)rKeyStops;
#endif
}