Kaydet (Commit) 2ffe693d authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

simplify/clarify code

üst 8fca9828
...@@ -1105,15 +1105,12 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException) ...@@ -1105,15 +1105,12 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException)
if(isAfterLast()) if(isAfterLast())
return sal_False; return sal_False;
++m_aKeyIter;
if(!m_bRowCountFinal) // not yet all records fetched 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()) if(m_aKeyIter == m_aKeyMap.end() && !fetchRow())
m_aKeyIter = m_aKeyMap.end(); m_aKeyIter = m_aKeyMap.end();
} }
else if(!isAfterLast())
++m_aKeyIter;
refreshRow(); refreshRow();
return !isAfterLast(); return !isAfterLast();
......
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