ODatabaseModelImpl doesn't need to be using rtl::IReference
Change-Id: Ia08d57b33af93ceb5c60c48602c403f893bbccc2
This commit is contained in:
@@ -981,12 +981,12 @@ Reference< XModel > ODatabaseModelImpl::createNewModel_deliverOwnership( bool _b
|
||||
return xModel;
|
||||
}
|
||||
|
||||
oslInterlockedCount SAL_CALL ODatabaseModelImpl::acquire()
|
||||
void SAL_CALL ODatabaseModelImpl::acquire()
|
||||
{
|
||||
return osl_atomic_increment(&m_refCount);
|
||||
osl_atomic_increment(&m_refCount);
|
||||
}
|
||||
|
||||
oslInterlockedCount SAL_CALL ODatabaseModelImpl::release()
|
||||
void SAL_CALL ODatabaseModelImpl::release()
|
||||
{
|
||||
if ( osl_atomic_decrement(&m_refCount) == 0 )
|
||||
{
|
||||
@@ -996,9 +996,7 @@ oslInterlockedCount SAL_CALL ODatabaseModelImpl::release()
|
||||
m_pDBContext->storeTransientProperties(*this);
|
||||
revokeDataSource();
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
return m_refCount;
|
||||
}
|
||||
|
||||
void ODatabaseModelImpl::commitStorages()
|
||||
|
@@ -144,8 +144,7 @@ typedef ::utl::SharedUNOComponent< ::com::sun::star::embed::XStorage > SharedSt
|
||||
class ODatabaseContext;
|
||||
class DocumentStorageAccess;
|
||||
class OSharedConnectionManager;
|
||||
class ODatabaseModelImpl :public ::rtl::IReference
|
||||
,public ::sfx2::IMacroDocumentAccess
|
||||
class ODatabaseModelImpl :public ::sfx2::IMacroDocumentAccess
|
||||
,public ::sfx2::IModifiableDocument
|
||||
{
|
||||
public:
|
||||
@@ -374,13 +373,9 @@ public:
|
||||
|
||||
inline const ::comphelper::SharedMutex& getSharedMutex() const { return m_aMutex; }
|
||||
|
||||
/** @see osl_incrementInterlockedCount.
|
||||
*/
|
||||
virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE;
|
||||
void SAL_CALL acquire();
|
||||
|
||||
/** @see osl_decrementInterlockedCount.
|
||||
*/
|
||||
virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE;
|
||||
void SAL_CALL release();
|
||||
|
||||
/// returns a all known data source settings, including their default values
|
||||
static const AsciiPropertyValue* getDefaultDataSourceSettings();
|
||||
|
Reference in New Issue
Block a user