summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basobj2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/basobj2.cxx')
-rw-r--r--basctl/source/basicide/basobj2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 0f383e436b23..5d939a7134c0 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -227,7 +227,7 @@ namespace
if ( pData->aDocument.isDocument() )
pUndoGuard.reset( new ::framework::DocumentUndoGuard( pData->aDocument.getDocument() ) );
- RunMethod(pData->xMethod);
+ RunMethod( pData->xMethod.get() );
}
}
@@ -374,7 +374,7 @@ Sequence< OUString > GetMethodNames( const ScriptDocument& rDocument, const OUSt
{
xModule = new SbModule( rModName );
xModule->SetSource32( aOUSource );
- pMod = xModule;
+ pMod = xModule.get();
}
sal_uInt16 nCount = pMod->GetMethods()->Count();
@@ -424,9 +424,9 @@ bool HasMethod (
{
xModule = new SbModule( rModName );
xModule->SetSource32( aOUSource );
- pMod = xModule;
+ pMod = xModule.get();
}
- SbxArray* pMethods = pMod->GetMethods();
+ SbxArray* pMethods = pMod->GetMethods().get();
if ( pMethods )
{
SbMethod* pMethod = static_cast<SbMethod*>(pMethods->Find( rMethName, SbxClassType::Method ));