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

Michaël Lefèvre lefevre00 at yahoo.fr
Thu Mar 12 15:32:04 PDT 2015


 dbaccess/source/ui/querydesign/JoinTableView.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit e0d4227d313aa77f11b3ee773859649629a906bb
Author: Michaël Lefèvre <lefevre00 at yahoo.fr>
Date:   Thu Mar 12 21:37:31 2015 +0100

    CppCheck cleaning : Redundant checking for element existence
    
    Change-Id: I8f9e3939d97c3b9623c1bd026f3cefd5cf671613
    Reviewed-on: https://gerrit.libreoffice.org/14846
    Tested-by: Michael Stahl <mstahl at redhat.com>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index a6ec039..a84153c 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -373,10 +373,7 @@ void OJoinTableView::RemoveTabWin( OTableWindow* pTabWin )
             rController.setModified(sal_True);
         }
 
-        OUString aWinName = pTabWin->GetWinName();
-        if(m_aTableMap.find(aWinName) != m_aTableMap.end())
-            m_aTableMap.erase( aWinName );
-        else
+        if ( !m_aTableMap.erase( pTabWin->GetWinName() ) )
             m_aTableMap.erase( pTabWin->GetComposedName() );
 
         if (pTabWin == m_pLastFocusTabWin)


More information about the Libreoffice-commits mailing list