From 4dd7c0369d66aa7b30f2b9e547faa5fb2c7cd8dd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 17 Jul 2012 17:00:14 +0200 Subject: Various Clang 3.1 -Wunsued-variable, -Wconstant-conversion Change-Id: I0799f22685609201dfb524c373d065b6184ed53c --- cppcanvas/source/mtfrenderer/emfplus.cxx | 7 ++++--- cppcanvas/source/mtfrenderer/implrenderer.cxx | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 7b2e8d79e0c3..8ce563b90af0 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -176,9 +176,10 @@ namespace cppcanvas aPolygon.clear (); - // debug code - const ::basegfx::B2DRectangle aBounds (::basegfx::tools::getRange (GetPolygon (rR))); - EMFP_DEBUG (printf ("EMF+\tpolygon bounding box: %f,%f %fx%f (mapped)\n", aBounds.getMinX (), aBounds.getMinY (), aBounds.getWidth (), aBounds.getHeight ())); + (void) rR; // avoid warnings + EMFP_DEBUG ( + const ::basegfx::B2DRectangle aBounds (::basegfx::tools::getRange (GetPolygon (rR))); + printf ("EMF+\tpolygon bounding box: %f,%f %fx%f (mapped)\n", aBounds.getMinX (), aBounds.getMinY (), aBounds.getWidth (), aBounds.getHeight ())); } ::basegfx::B2DPolyPolygon& GetPolygon (ImplRenderer& rR, bool bMapIt = true) diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 8c25ee505913..74f47ee5cc8a 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -2573,7 +2573,6 @@ namespace cppcanvas const OutDevState& rState( rStates.getState() ); const ::Size aBaselineOffset( tools::getBaselineOffset( rState, rVDev ) ); - const ::Point aStartPoint( pAct->GetStartPoint() ); const ::basegfx::B2DSize aSize( rState.mapModeTransform * ::basegfx::B2DSize(pAct->GetWidth(), 0 )); @@ -2980,8 +2979,6 @@ namespace cppcanvas const Size aMtfSize( rMtf.GetPrefSize() ); const Size aMtfSizePixPre( aVDev.LogicToPixel( aMtfSize, rMtf.GetPrefMapMode() ) ); - const Point aEmptyPt; - const Point aMtfOriginPix( aVDev.LogicToPixel( aEmptyPt ) ); // #i44110# correct null-sized output - there are shapes // which have zero size in at least one dimension -- cgit