diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-01 11:00:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-01 12:23:08 +0200 |
commit | 7bd7ff5a8d938e474a8f15e2c6facad632a342bb (patch) | |
tree | 6321afdb483360b1130b0d2a0d995b6f27bbe59b /xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx | |
parent | cc2b7c1f930bc05253153f3c8381fb4fb352f3ca (diff) |
loplugin:reducevarscope in xmloff
Change-Id: Ib67311f84a6a7a490afb392e642d74693fde3113
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103747
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx')
-rw-r--r-- | xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx b/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx index 4528cd8056c2..9b8ad7c63f80 100644 --- a/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx +++ b/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx @@ -76,11 +76,10 @@ bool XMLBitmapRepeatOffsetPropertyHandler::exportXML( const Any& rValue, const SvXMLUnitConverter& ) const { - OUStringBuffer aOut; - sal_Int32 nValue = 0; if( rValue >>= nValue ) { + OUStringBuffer aOut; ::sax::Converter::convertPercent( aOut, nValue ); aOut.append( ' ' ); aOut.append( mbX ? msHorizontal : msVertical ); |