summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 09:38:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 12:32:18 +0200
commit9373320fc88c1582a2ad25bda9c5264c7c58a97e (patch)
treeee2df8944d7af2080498b991ed46429e0a020947 /sw/source/filter/xml
parent37b81dd54a915223780a6b5efa54ce45db332604 (diff)
loplugin:reducevarscope in sw
Change-Id: Ifed7220c6acf7049b2985f1911a806b37a54d794 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103646 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx
index aab0a0069273..1a0978bc9bbd 100644
--- a/sw/source/filter/xml/xmlimpit.cxx
+++ b/sw/source/filter/xml/xmlimpit.cxx
@@ -953,9 +953,9 @@ bool SvXMLImportItemMapper::PutXMLValue(
break;
}
- sal_Int32 nValue;
if( bSetHeight || bSetWidth )
{
+ sal_Int32 nValue;
bOk = rUnitConverter.convertMeasureToCore(nValue, rValue, nMin,
USHRT_MAX );
if( bOk )