diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-21 16:22:07 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-23 11:49:32 +0000 |
commit | f107d453819fe06e1e8d46ffb3cc866f119d74fd (patch) | |
tree | c736accea43af430d2f7ba6233840060df1cad19 /sc/source/ui/vba | |
parent | 833088b18015381dc8f90e4e868f96b7e882334f (diff) |
Convert SbxClassType to scoped enum
Change-Id: I48afcdd9924d22b52a8db21aa253061e4d38c85b
Reviewed-on: https://gerrit.libreoffice.org/25259
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbahelper.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 24b37ee2c2b9..2ea30e522685 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -459,7 +459,7 @@ ScVbaApplication::wait( double time ) throw (uno::RuntimeException, std::excepti SbxVariableRef aRef = new SbxVariable; aRef->PutDouble( time ); aArgs->Put( aRef, 1 ); - SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "WaitUntil", SbxCLASS_METHOD )); + SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "WaitUntil", SbxClassType::Method )); if ( pMeth ) { @@ -1258,7 +1258,7 @@ uno::Any SAL_CALL ScVbaApplication::Caller( const uno::Any& /*aIndex*/ ) throw ( uno::RuntimeException, std::exception ) { StarBASIC* pBasic = SfxApplication::GetBasic(); - SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "FuncCaller", SbxCLASS_METHOD )); + SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "FuncCaller", SbxClassType::Method )); uno::Any aRet; if ( pMeth ) { diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx index 069e590bdb97..09592fd9bd14 100644 --- a/sc/source/ui/vba/vbahelper.cxx +++ b/sc/source/ui/vba/vbahelper.cxx @@ -253,7 +253,7 @@ getCurrentDocument() throw (uno::RuntimeException) } uno::Any aModel; - SbxVariable *pCompVar = basicChosen->Find( "ThisComponent", SbxCLASS_OBJECT ); + SbxVariable *pCompVar = basicChosen->Find( "ThisComponent", SbxClassType::Object ); if ( pCompVar ) { |