summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorJacek Fraczek <fraczek.jacek@gmail.com>2016-10-05 22:00:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-10 08:48:30 +0000
commitf004aa99514d385f3ee254bba735f5eaeb7d9ad8 (patch)
treeaacd5792f553b8e9cbf029cc7e0797ed0dd423fe /sfx2/source/appl
parent728c7327bd97602a38723553ed044ea4c01d13b2 (diff)
tdf#89307: Removed SvRef::operator T*()
Conditional statements are using SvRef::Is() method. Changed static_cast<T*>(svRef<T>) occurances to svRef.get(). Added operator == and != to SvRef. SbxObject::Execute is using SbxVariableRef internally. SbxObject::FindQualified is using SbxVariableRef internally. Change-Id: I45b553e35d8fca9bf71163e6eefc60802a066395 Reviewed-on: https://gerrit.libreoffice.org/29621 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/macroloader.cxx4
-rw-r--r--sfx2/source/appl/xpackcreator.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 9cf3dade9e30..3ab011f3dac0 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -290,9 +290,9 @@ ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, css::uno::Any& rRetval,
// execute the method
SbxVariableRef retValRef = new SbxVariable;
- nErr = pBasMgr->ExecuteMacro( aQualifiedMethod, aArgs, retValRef );
+ nErr = pBasMgr->ExecuteMacro( aQualifiedMethod, aArgs, retValRef.get() );
if ( nErr == ERRCODE_NONE )
- rRetval = sbxToUnoValue( retValRef );
+ rRetval = sbxToUnoValue( retValRef.get() );
}
if ( bSetGlobalThisComponent )
diff --git a/sfx2/source/appl/xpackcreator.cxx b/sfx2/source/appl/xpackcreator.cxx
index 5297d927b009..8e1a2eec043d 100644
--- a/sfx2/source/appl/xpackcreator.cxx
+++ b/sfx2/source/appl/xpackcreator.cxx
@@ -85,7 +85,7 @@ void SAL_CALL OPackageStructureCreator::convertToPackage( const OUString& aFolde
{
pTempStream = new SvFileStream( aTempURL, StreamMode::STD_READWRITE );
tools::SvRef<SotStorage> aTargetStorage = new SotStorage( true, *pTempStream );
- aStorage->CopyTo( aTargetStorage );
+ aStorage->CopyTo( aTargetStorage.get() );
aTargetStorage->Commit();
if ( aStorage->GetError() || aTargetStorage->GetError() || pTempStream->GetError() )