summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-08-22 13:08:41 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-08-22 13:04:12 +0000
commit7e318570dc0c0878bfd2a960230a26f7e5fe2bcf (patch)
treeaa85e58d369f67297ad395addfd0dc6654dbfdee /sax
parent25accda781bc0bc79ca2e887c54ca981068bf407 (diff)
tdf#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ie492fb9c106b37c3fe7b0105236ad6315f4f159e Reviewed-on: https://gerrit.libreoffice.org/17921 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/tools/converter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index d7adda18df2b..1ed1d8725ee8 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -2035,10 +2035,11 @@ double Converter::GetConversionFactor(OUStringBuffer& rUnit, sal_Int16 nSourceUn
double fRetval(1.0);
rUnit.setLength(0L);
- const sal_Char* psUnit = 0;
if(nSourceUnit != nTargetUnit)
{
+ const sal_Char* psUnit = 0;
+
switch(nSourceUnit)
{
case MeasureUnit::TWIP: