Kaydet (Commit) 900d648f authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

use enum constant instead of hard-coded integer literal

Change-Id: Ide3f05cc66353787acb33b33340577624f25a8bc
üst d7c9a1d9
...@@ -1329,7 +1329,7 @@ void ORowSetBase::onDeleteRow( const Any& _rBookmark ) ...@@ -1329,7 +1329,7 @@ void ORowSetBase::onDeleteRow( const Any& _rBookmark )
::osl::MutexGuard aGuard( *m_pMutex ); ::osl::MutexGuard aGuard( *m_pMutex );
//OSL_ENSURE( m_aBookmark.hasValue(), "ORowSetBase::onDeleteRow: Bookmark isn't valid!" ); //OSL_ENSURE( m_aBookmark.hasValue(), "ORowSetBase::onDeleteRow: Bookmark isn't valid!" );
if ( compareBookmarks( _rBookmark, m_aBookmark ) == 0 ) if ( compareBookmarks( _rBookmark, m_aBookmark ) == CompareBookmark::EQUAL )
{ {
positionCache( MOVE_NONE ); positionCache( MOVE_NONE );
m_nDeletedPosition = m_pCache->getRow(); m_nDeletedPosition = m_pCache->getRow();
...@@ -1349,7 +1349,7 @@ void ORowSetBase::onDeletedRow( const Any& _rBookmark, sal_Int32 _nPos ) ...@@ -1349,7 +1349,7 @@ void ORowSetBase::onDeletedRow( const Any& _rBookmark, sal_Int32 _nPos )
} }
::osl::MutexGuard aGuard( *m_pMutex ); ::osl::MutexGuard aGuard( *m_pMutex );
if ( compareBookmarks( _rBookmark, m_aBookmark ) == 0 ) if ( compareBookmarks( _rBookmark, m_aBookmark ) == CompareBookmark::EQUAL )
{ {
m_aOldRow->clearRow(); m_aOldRow->clearRow();
m_aCurrentRow = m_pCache->getEnd(); m_aCurrentRow = m_pCache->getEnd();
......
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