diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-04 23:28:18 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-04 23:43:41 +0200 |
commit | 43f9468d3529ab7e6f20a5ba3ae12dc14ead4193 (patch) | |
tree | 02113eb09ecc100344583fc47192b528976e0687 | |
parent | 12cfcf3733a5302bd78c277a1a33794c38c3610c (diff) |
bCheck is guaranteed by the for loop condition
Change-Id: Ia54eaa5cb1aa8bb4a052cea25396b07f048ff74c
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 9 |
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(); } } |