[Libreoffice-commits] core.git: xmloff/source

Julien Nabet serval2412 at yahoo.fr
Sat Aug 31 13:07:27 PDT 2013


 xmloff/source/style/shdwdhdl.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 44922e5a8ef47d054734276366d7f977fdc0ef3a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Aug 31 22:06:40 2013 +0200

    cppcheck: fix redundant assignment
    
    Change-Id: If9768751a50f302b8ad036f345ddcbcc29366b7c

diff --git a/xmloff/source/style/shdwdhdl.cxx b/xmloff/source/style/shdwdhdl.cxx
index 4fb594d..ddb2457 100644
--- a/xmloff/source/style/shdwdhdl.cxx
+++ b/xmloff/source/style/shdwdhdl.cxx
@@ -38,13 +38,10 @@ XMLShadowedPropHdl::~XMLShadowedPropHdl()
 
 sal_Bool XMLShadowedPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const
 {
-    sal_Bool bRet = sal_False;
-
     sal_Bool bValue = ! IsXMLToken( rStrImpValue, XML_NONE );
     rValue <<= sal_Bool(bValue);
-    bRet = sal_True;
 
-    return bRet;
+    return sal_True;
 }
 
 sal_Bool XMLShadowedPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& ) const


More information about the Libreoffice-commits mailing list