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

Stephan Bergmann sbergman at redhat.com
Mon Jan 11 01:15:37 PST 2016


 dbaccess/source/core/api/RowSetCache.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit cd9a016116e07e6ac08dcdd3b08b3d070469cedc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 11 10:15:07 2016 +0100

    -Werror=unused-but-set-variable
    
    Change-Id: I8d2870dc003185598977876e4ff54af74645bc90

diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index f1b81a1..ca288c4 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -873,8 +873,6 @@ void ORowSetCache::moveWindow()
         return;
     }
 
-    bool bRet = true;
-
     sal_Int32 nDiff = (m_nFetchSize - 1) / 2;
     sal_Int32 nNewStartPos  = (m_nPosition - nDiff) - 1; //m_nPosition is 1-based, but m_nStartPos is 0-based
     sal_Int32 nNewEndPos    = nNewStartPos + m_nFetchSize;
@@ -963,7 +961,7 @@ void ORowSetCache::moveWindow()
         }
         else
         {// no rows can be reused so fill again
-            bRet = reFillMatrix(nNewStartPos,nNewEndPos);
+            reFillMatrix(nNewStartPos,nNewEndPos);
         }
     }
 
@@ -1076,7 +1074,7 @@ void ORowSetCache::moveWindow()
             }
         }
         else // no rows can be reused so fill again
-            bRet = reFillMatrix(nNewStartPos,nNewEndPos);
+            reFillMatrix(nNewStartPos,nNewEndPos);
     }
 
     if(!m_bRowCountFinal)


More information about the Libreoffice-commits mailing list