summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 13:37:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-04 14:06:37 +0200
commita36ada7c5400735b6d03d7215a32ea7e98aacd63 (patch)
treed90c9995144614d47b997f8becdf488caa25cd53 /svgio
parent27f1827afa11ba9c5d912614dc84dd308ecf8b5f (diff)
loplugin:reducevarscope in store..svtools
Change-Id: Iaa6c6eac15cb73fc2a76ba1c5241297c94d297cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103839 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index bc4e739eccb8..419a887cc55f 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -225,11 +225,11 @@ namespace svgio::svgreader
{
// prepare retval, index and length
drawinglayer::primitive2d::TextSimplePortionPrimitive2D* pRetval = nullptr;
- sal_uInt32 nIndex(0);
sal_uInt32 nLength(getText().getLength());
if(nLength)
{
+ sal_uInt32 nIndex(0);
// prepare FontAttribute
const SvgStringVector& rFontFamilyVector = rSvgStyleAttributes.getFontFamily();
OUString aFontFamily = rFontFamilyVector.empty() ?