summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpreader.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-16 22:18:32 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-17 07:32:56 +0000
commite31657a1eaad12de1ad89aec5b50f8116f67fa3e (patch)
tree435fe84175e5a597d671a86befdf23e91b1fc975 /hwpfilter/source/hwpreader.cxx
parent28d9983e2c561528c27c0dd40c2c0ea5b46a270f (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I9812658e8a96dd35d686c7ae7a8b829267c5c8bc Reviewed-on: https://gerrit.libreoffice.org/13499 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'hwpfilter/source/hwpreader.cxx')
-rw-r--r--hwpfilter/source/hwpreader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index fbb09ca1902f..28733fa61477 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -3962,14 +3962,14 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox)
{
int x = hbox->pgx;
int y = hbox->pgy;
- int a, b;
bool bIsRotate = false;
while (drawobj)
{
padd("draw:style-name", sXML_CDATA,
ascii(Int2Str(drawobj->index, "Draw%d", buf)));
- a = 0; b = 0;
+ int a = 0;
+ int b = 0;
switch (hbox->style.anchor_type)
{