[Libreoffice-commits] core.git: 2 commits - cui/source starmath/source

Julien Nabet serval2412 at yahoo.fr
Fri Sep 27 14:09:30 PDT 2013


 cui/source/options/optlingu.cxx |    1 -
 starmath/source/mathtype.cxx    |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

New commits:
commit fa82c9a1d1bfda52905e93217c7d8b6d8a2ad014
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Sep 27 23:07:31 2013 +0200

    cppcheck: redundant assignment
    
    Change-Id: I63af30b062272bb02f786e60d2fcadc91689dec6

diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index d140fc4..d662ee1 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -943,7 +943,6 @@ sal_Bool SvxLinguData_Impl::AddRemove(
     {
         rConfigured.realloc( ++nEntries );
         OUString *pConfigured = rConfigured.getArray();
-        pConfigured = rConfigured.getArray();
         pConfigured[nEntries - 1] = rImplName;
         bRet = sal_True;
     }
commit c5f3ff95d23eb410b5debdd7df359ea57b415143
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Sep 27 23:06:37 2013 +0200

    cppcheck: redundant condition
    
    Change-Id: I751b5c11d51068dd019a74ea29bd3bf9cf9ba51d

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 833a5a0..58053e4 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2694,7 +2694,7 @@ int MathType::HandleMatrix(int nLevel,sal_uInt8 nSelector,
     int nRet = HandleRecords(nLevel+1,nSelector,nVariation,nRows,nCols);
 
     sal_Int32 nI = rRet.lastIndexOf('#');
-    if ((nI != -1) && (nI > 0))
+    if (nI > 0)
         if (rRet[nI-1] != '#')  //missing column
             rRet += "{}";
 


More information about the Libreoffice-commits mailing list