summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-09 13:06:27 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-02-09 13:10:29 +0100
commit9c6ca789ef80eefff1875b7c804c343ff1668ce0 (patch)
tree61f9305274810de2ebfb6b096dc1f7f9aeea08c5 /dbaccess
parent4ea68987e96714aec1be339c4ddd5b6110bfd008 (diff)
reorganise code for better readability
No behaviour change intended. However, if behaviour changed, probably the *old* behaviour is buggy, not new one.
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 08e1a8bfcc4f..6a853e6399a3 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -1074,17 +1074,17 @@ sal_Bool ORowSetCache::moveWindow()
{
aIter = m_pMatrix->begin();
- nPos = m_nStartPos;
- bCheck = m_pCacheSet->absolute_checked(m_nStartPos,sal_False);
- for(; !aIter->is() && bCheck;++aIter)
+ nPos = m_nStartPos + 1;
+ bCheck = m_pCacheSet->absolute_checked(nPos, sal_False);
+ for(; !aIter->is() && bCheck;++aIter, ++nPos)
{
OSL_ENSURE(aIter != m_pMatrix->end(),"Invalid iterator");
- bCheck = m_pCacheSet->next();
if ( bCheck ) // resultset stands on right position
{
*aIter = new ORowSetValueVector(m_xMetaData->getColumnCount());
- m_pCacheSet->fillValueRow(*aIter,++nPos);
+ m_pCacheSet->fillValueRow(*aIter, nPos);
}
+ bCheck = m_pCacheSet->next();
}
}
}