summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-11 10:15:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-11 10:15:07 +0100
commitcd9a016116e07e6ac08dcdd3b08b3d070469cedc (patch)
tree7b1bfe567e08969473378b2fde6d141cd103a305 /dbaccess
parent9b948d7a9690e8b418f25a1036b22ea53e23c36a (diff)
-Werror=unused-but-set-variable
Change-Id: I8d2870dc003185598977876e4ff54af74645bc90
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index f1b81a11b577..ca288c4cd3cd 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)