summaryrefslogtreecommitdiff
path: root/basegfx
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
parentc8fd385d6100d7b0ef2db3c5f4f1871470c65689 (diff)
loplugin:casttovoid: basegfx
Change-Id: I5a7723a9b0ce64969a96a3bccb47b380a138b69c
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/range/b2drangeclipper.cxx2
-rw-r--r--basegfx/source/tools/keystoplerp.cxx3
-rw-r--r--basegfx/test/basegfx2d.cxx12
3 files changed, 2 insertions, 15 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
}
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index 829040e1442f..f5cc617ddbc2 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -959,10 +959,6 @@ public:
Type aRange5(5,6);
aRange.intersect(aRange5);
CPPUNIT_ASSERT_MESSAGE("range intersection is yielding nonempty range!", aRange.isEmpty());
-
- // just so that this compiles -
- Type aRange6( aRange );
- (void)aRange6;
}
void check()
@@ -997,10 +993,6 @@ public:
CPPUNIT_ASSERT_MESSAGE("(11,11) is inside range!",
tools::getCohenSutherlandClipFlags(B2IPoint(11,11),aRange) ==
(tools::RectClipFlags::RIGHT|tools::RectClipFlags::BOTTOM));
-
- // just so that this compiles -
- Type aRange1( aRange );
- (void)aRange1;
}
void check()
@@ -1036,10 +1028,6 @@ public:
CPPUNIT_ASSERT_EQUAL_MESSAGE("(10,10) is inside range!",
tools::RectClipFlags::RIGHT|tools::RectClipFlags::BOTTOM,
tools::getCohenSutherlandClipFlags(B2IPoint(10,10),aBox));
-
- // just so that this compiles -
- B2IBox aBox1( aBox );
- (void)aBox1;
}
// Change the following lines only, if you add, remove or rename