diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-22 10:54:18 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-22 13:18:53 +0100 |
commit | 900d648f8b91fd742188e4d150cb695c1983bae2 (patch) | |
tree | e0feb2afffd3a1c38a2b7ffe33bb465b3cb82de7 /dbaccess | |
parent | d7c9a1d9d65fe8b1a56c5c280d2ca6640a549d2f (diff) |
use enum constant instead of hard-coded integer literal
Change-Id: Ide3f05cc66353787acb33b33340577624f25a8bc
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx index bfaf44d5421b..3764f3e6b323 100644 --- a/dbaccess/source/core/api/RowSetBase.cxx +++ b/dbaccess/source/core/api/RowSetBase.cxx @@ -1329,7 +1329,7 @@ void ORowSetBase::onDeleteRow( const Any& _rBookmark ) ::osl::MutexGuard aGuard( *m_pMutex ); //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 ); m_nDeletedPosition = m_pCache->getRow(); @@ -1349,7 +1349,7 @@ void ORowSetBase::onDeletedRow( const Any& _rBookmark, sal_Int32 _nPos ) } ::osl::MutexGuard aGuard( *m_pMutex ); - if ( compareBookmarks( _rBookmark, m_aBookmark ) == 0 ) + if ( compareBookmarks( _rBookmark, m_aBookmark ) == CompareBookmark::EQUAL ) { m_aOldRow->clearRow(); m_aCurrentRow = m_pCache->getEnd(); |