diff options
Diffstat (limited to 'connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx')
-rw-r--r-- | connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx index 37040d4372a2..c8e4156e7cd7 100644 --- a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx @@ -71,10 +71,10 @@ ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet(OConnection* _pConnection if( SQL_NULL_HANDLE == m_aStatementHandle ) throw RuntimeException(); - osl_incrementInterlockedCount( &m_refCount ); + osl_atomic_increment( &m_refCount ); m_pConnection->acquire(); m_pRowStatusArray = new SQLUSMALLINT[1]; // the default value - osl_decrementInterlockedCount( &m_refCount ); + osl_atomic_decrement( &m_refCount ); // allocBuffer(); } @@ -84,7 +84,7 @@ ODatabaseMetaDataResultSet::~ODatabaseMetaDataResultSet() OSL_ENSURE(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed,"Object wasn't disposed!"); if(!ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed) { - osl_incrementInterlockedCount( &m_refCount ); + osl_atomic_increment( &m_refCount ); dispose(); } delete [] m_pRowStatusArray; |