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

Julien Nabet serval2412 at yahoo.fr
Thu Aug 22 22:27:03 PDT 2013


 sc/source/core/data/table6.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 33cdd24e97e2cc7a27b7bc7467dd54a2bf6a73de
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Aug 23 07:26:30 2013 +0200

    cppcheck: fix reassigned value
    
    Change-Id: If37c0fde63c718fd493115de76e2dc8c0e780c3e

diff --git a/sc/source/core/data/table6.cxx b/sc/source/core/data/table6.cxx
index 3f23fa0..2270888 100644
--- a/sc/source/core/data/table6.cxx
+++ b/sc/source/core/data/table6.cxx
@@ -464,12 +464,11 @@ void ScTable::UpdateSearchItemAddressForReplace( const SvxSearchItem& rSearchIte
 bool ScTable::Replace(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW& rRow,
                       const ScMarkData& rMark, OUString& rUndoStr, ScDocument* pUndoDoc)
 {
-    bool bFound = false;
     SCCOL nCol = rCol;
     SCROW nRow = rRow;
 
     UpdateSearchItemAddressForReplace( rSearchItem, nCol, nRow );
-    bFound = Search(rSearchItem, nCol, nRow, rMark, rUndoStr, pUndoDoc);
+    bool bFound = Search(rSearchItem, nCol, nRow, rMark, rUndoStr, pUndoDoc);
     if (bFound)
     {
         rCol = nCol;


More information about the Libreoffice-commits mailing list