Kaydet (Commit) 9c6ca789 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

reorganise code for better readability

No behaviour change intended. However, if behaviour changed, probably the *old* behaviour is buggy, not new one.
üst 4ea68987
...@@ -1074,17 +1074,17 @@ sal_Bool ORowSetCache::moveWindow() ...@@ -1074,17 +1074,17 @@ sal_Bool ORowSetCache::moveWindow()
{ {
aIter = m_pMatrix->begin(); aIter = m_pMatrix->begin();
nPos = m_nStartPos; nPos = m_nStartPos + 1;
bCheck = m_pCacheSet->absolute_checked(m_nStartPos,sal_False); bCheck = m_pCacheSet->absolute_checked(nPos, sal_False);
for(; !aIter->is() && bCheck;++aIter) for(; !aIter->is() && bCheck;++aIter, ++nPos)
{ {
OSL_ENSURE(aIter != m_pMatrix->end(),"Invalid iterator"); OSL_ENSURE(aIter != m_pMatrix->end(),"Invalid iterator");
bCheck = m_pCacheSet->next();
if ( bCheck ) // resultset stands on right position if ( bCheck ) // resultset stands on right position
{ {
*aIter = new ORowSetValueVector(m_xMetaData->getColumnCount()); *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount());
m_pCacheSet->fillValueRow(*aIter,++nPos); m_pCacheSet->fillValueRow(*aIter, nPos);
} }
bCheck = m_pCacheSet->next();
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment