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

Julien Nabet serval2412 at yahoo.fr
Thu Jun 6 15:06:45 PDT 2013


 dbaccess/source/core/dataaccess/documentcontainer.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f62cb42d060b50cf7015ee8e2031c45f7631669a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Jun 7 00:05:58 2013 +0200

    cppcheck: fix reassign
    
    Change-Id: Ic1f02c6734cbb0ac4846f0003f70091d5d5b4315

diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index fb0138d..956c58c 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -488,10 +488,9 @@ namespace
 {
     sal_Bool lcl_queryContent(const OUString& _sName,Reference< XNameContainer >& _xNameContainer,Any& _rRet,OUString& _sSimpleName)
     {
-        sal_Bool bRet = sal_False;
         sal_Int32 nIndex = 0;
         OUString sName = _sName.getToken(0,'/',nIndex);
-        bRet = _xNameContainer->hasByName(sName);
+        sal_Bool bRet = _xNameContainer->hasByName(sName);
         if ( bRet )
         {
             _rRet = _xNameContainer->getByName(_sSimpleName = sName);


More information about the Libreoffice-commits mailing list