dbaccess/source/core/api/KeySet.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
New commits: commit 1eabf68e3ba167365f40a8b5e8ca56cf3d43cb52 Author: Lionel Elie Mamane <lio...@mamane.lu> Date: Tue May 15 18:37:43 2012 +0200 simplify/clarify code diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index bee8695..c800375 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1106,15 +1106,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(); commit e0ef49f034561fcfb024482c1e532c9cae6f5d14 Author: Lionel Elie Mamane <lio...@mamane.lu> Date: Tue May 15 18:36:12 2012 +0200 fdo#48345 need to refresh row also when not m_bRowCountFinal diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 0b88fa6..bee8695 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1109,14 +1109,9 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException) 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 - { - //m_aKeyIter->second.second.second = new OPrivateRow(_rInsertRow->get()); - m_xRow.set(m_xDriverRow,UNO_QUERY_THROW); - return !isAfterLast(); - } } else if(!isAfterLast()) ++m_aKeyIter; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits