diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-06 19:51:04 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-11 06:15:26 +0000 |
commit | 0e55feea6a6bb516c4198960b14192f363f08601 (patch) | |
tree | 3b6c9912c46423c089e8ee9f7533caabf8f1e6c3 /canvas/workben | |
parent | 7557f23b31dcfb4d86c122bb34d9675c0db9a694 (diff) |
reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I1122494e295af756ef3cc32717fe204505aeb9e3
Reviewed-on: https://gerrit.libreoffice.org/13335
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas/workben')
-rw-r--r-- | canvas/workben/canvasdemo.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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++) |