From 43f9468d3529ab7e6f20a5ba3ae12dc14ead4193 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Mon, 4 Jun 2012 23:28:18 +0200 Subject: bCheck is guaranteed by the for loop condition Change-Id: Ia54eaa5cb1aa8bb4a052cea25396b07f048ff74c --- dbaccess/source/core/api/RowSetCache.cxx | 9 ++++----- 1 file 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(); } } -- cgit