summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/codemaker/typemanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/source/codemaker/typemanager.cxx b/codemaker/source/codemaker/typemanager.cxx
index c5add3e2e9a3..d223e48f47f3 100644
--- a/codemaker/source/codemaker/typemanager.cxx
+++ b/codemaker/source/codemaker/typemanager.cxx
@@ -41,13 +41,13 @@ TypeManager::~TypeManager()
sal_Int32 TypeManager::acquire()
{
- return osl_incrementInterlockedCount(&m_pImpl->m_refCount);
+ return osl_atomic_increment(&m_pImpl->m_refCount);
}
sal_Int32 TypeManager::release()
{
sal_Int32 refCount = 0;
- if (0 == (refCount = osl_decrementInterlockedCount(&m_pImpl->m_refCount)) )
+ if (0 == (refCount = osl_atomic_decrement(&m_pImpl->m_refCount)) )
{
delete m_pImpl;
}