summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appbas.cxx2
-rw-r--r--sfx2/source/notify/hintpost.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx
index 0501d5a94dba..5f48908a3e70 100644
--- a/sfx2/source/appl/appbas.cxx
+++ b/sfx2/source/appl/appbas.cxx
@@ -155,7 +155,7 @@ void SfxApplication::PropExec_Impl( SfxRequest &rReq )
if ( pItem )
{
SbxObject* pObject = SbxBase::CreateObject( pItem->GetValue() );
- pObject->AddRef();
+ pObject->AddFirstRef();
rReq.Done();
}
break;
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx
index f13953845f19..f0b127a9c337 100644
--- a/sfx2/source/notify/hintpost.cxx
+++ b/sfx2/source/notify/hintpost.cxx
@@ -42,7 +42,7 @@ SfxHintPoster::~SfxHintPoster()
void SfxHintPoster::Post( SfxHint* pHintToPost )
{
Application::PostUserEvent( ( LINK(this, SfxHintPoster, DoEvent_Impl) ), pHintToPost );
- AddRef();
+ AddFirstRef();
}