diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-26 14:19:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-26 14:45:38 +0000 |
commit | bcce2502a3c0a8bbb503a5b48de07defe21b09f0 (patch) | |
tree | 07880ab0f79c2ff34a1f46260ab425c4e2e4fd47 /xmloff/source | |
parent | 44e1eaea6acc248db48a9b6b587baff7d24a6742 (diff) |
cppcheck: redundantAssignment
Change-Id: Iee0fcb8e2b91a6554bedc7e3989c0585a1679a61
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/style/xmlbahdl.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/xmloff/source/style/xmlbahdl.cxx b/xmloff/source/style/xmlbahdl.cxx index ac90a0b31fcd..bee67a4a70bf 100644 --- a/xmloff/source/style/xmlbahdl.cxx +++ b/xmloff/source/style/xmlbahdl.cxx @@ -186,12 +186,9 @@ XMLMeasurePropHdl::~XMLMeasurePropHdl() bool XMLMeasurePropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { - bool bRet = false; - sal_Int32 nValue = 0; - bRet = rUnitConverter.convertMeasureToCore( nValue, rStrImpValue ); + bool bRet = rUnitConverter.convertMeasureToCore( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); - return bRet; } @@ -407,7 +404,6 @@ bool XMLNegPercentPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, } // class XMLMeasurePxPropHdl - XMLMeasurePxPropHdl::~XMLMeasurePxPropHdl() { // nothing to do @@ -415,12 +411,9 @@ XMLMeasurePxPropHdl::~XMLMeasurePxPropHdl() bool XMLMeasurePxPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const { - bool bRet = false; - sal_Int32 nValue = 0; - bRet = ::sax::Converter::convertMeasurePx( nValue, rStrImpValue ); + bool bRet = ::sax::Converter::convertMeasurePx( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); - return bRet; } @@ -558,12 +551,8 @@ XMLStringPropHdl::~XMLStringPropHdl() bool XMLStringPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const { - bool bRet = false; - rValue <<= rStrImpValue; - bRet = true; - - return bRet; + return true; } bool XMLStringPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& ) const |