From 0e55feea6a6bb516c4198960b14192f363f08601 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 6 Dec 2014 19:51:04 +0100 Subject: reduce scope of local variables This addresses some cppcheck warnings. Change-Id: I1122494e295af756ef3cc32717fe204505aeb9e3 Reviewed-on: https://gerrit.libreoffice.org/13335 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- canvas/workben/canvasdemo.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'canvas/workben') diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx index b8ca6b4675c3..d32fe7080d39 100644 --- a/canvas/workben/canvasdemo.cxx +++ b/canvas/workben/canvasdemo.cxx @@ -208,14 +208,13 @@ class DemoRenderer const int VERTICES = 10; const double RADIUS = 60.0; int i, j; - double a; rendering::RenderState maOldRenderState = maRenderState; // push translate( center_x, center_y ); for (i = 0; i < VERTICES; i++) { - a = 2.0 * M_PI * i / VERTICES; + double a = 2.0 * M_PI * i / VERTICES; geometry::RealPoint2D aSrc( RADIUS * cos (a), RADIUS * sin (a) ); for (j = i + 1; j < VERTICES; j++) -- cgit