summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-06-04 23:28:18 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-06-04 23:43:41 +0200
commit43f9468d3529ab7e6f20a5ba3ae12dc14ead4193 (patch)
tree02113eb09ecc100344583fc47192b528976e0687 /dbaccess
parent12cfcf3733a5302bd78c277a1a33794c38c3610c (diff)
bCheck is guaranteed by the for loop condition
Change-Id: Ia54eaa5cb1aa8bb4a052cea25396b07f048ff74c
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 940618a5dd43..05a88d05ac16 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -1087,11 +1087,10 @@ sal_Bool ORowSetCache::moveWindow()
for(; !aIter->is() && bCheck;++aIter, ++nPos)
{
OSL_ENSURE(aIter != m_pMatrix->end(),"Invalid iterator");
- if ( bCheck ) // resultset stands on right position
- {
- *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount());
- m_pCacheSet->fillValueRow(*aIter, nPos);
- }
+
+ *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount());
+ m_pCacheSet->fillValueRow(*aIter, nPos);
+
bCheck = m_pCacheSet->next();
}
}