diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-05-15 18:37:43 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-05-15 18:52:21 +0200 |
commit | 2ffe693d7e1f9710815b946112b34e2aec5450e5 (patch) | |
tree | d234b1bf808c5da40e2ca4626b202e45dda41e8d /dbaccess | |
parent | 8fca982829c03995e74faf17e5777b3aa61b91dc (diff) |
simplify/clarify code
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 49edcbf6dd83..26112cfb501e 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1105,15 +1105,12 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException) if(isAfterLast()) return sal_False; + ++m_aKeyIter; if(!m_bRowCountFinal) // not yet all records fetched { - ++m_aKeyIter; // this is possible because we stand on begin() and this is the "beforefirst" row - // LEM: above comment is wrong; we may be anywhere but after last. if(m_aKeyIter == m_aKeyMap.end() && !fetchRow()) m_aKeyIter = m_aKeyMap.end(); } - else if(!isAfterLast()) - ++m_aKeyIter; refreshRow(); return !isAfterLast(); |