From 806a2609e5a1436667a6ad4aa93d14dbdd61c302 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:35:46 +0200 Subject: loplugin:casttovoid: basegfx Change-Id: I5a7723a9b0ce64969a96a3bccb47b380a138b69c --- basegfx/source/range/b2drangeclipper.cxx | 2 -- basegfx/source/tools/keystoplerp.cxx | 3 ++- basegfx/test/basegfx2d.cxx | 12 ------------ 3 files changed, 2 insertions(+), 15 deletions(-) (limited to 'basegfx') 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& 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& 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 -- cgit