diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-05-17 12:37:12 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-05-17 12:37:12 +0200 |
commit | 8ea2bf29c778e12551466eb635afedce75ac78c2 (patch) | |
tree | c215811a53afc767cbb7b4c6dba5448e70e18abb /basic | |
parent | 58c8df1c263fa69b820bd91512e1244986a8485f (diff) |
#i10000# fixed bad merge
Diffstat (limited to 'basic')
-rwxr-xr-x | basic/source/classes/sb.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 094568e7f0b2..3373442e5eb2 100755 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -69,10 +69,12 @@ using com::sun::star::uno::Any; using com::sun::star::uno::UNO_QUERY; using com::sun::star::lang::XMultiServiceFactory; +const static String aThisComponent( RTL_CONSTASCII_USTRINGPARAM("ThisComponent") ); +const static String aVBAHook( RTL_CONSTASCII_USTRINGPARAM( "VBAGlobals" ) ); + SbxObject* StarBASIC::getVBAGlobals( ) { if ( !pVBAGlobals ) -// pVBAGlobals = (SbUnoObject*)Find( String(RTL_CONSTASCII_USTRINGPARAM("VBAGlobals")), SbxCLASS_DONTCARE ); { Any aThisDoc; if ( GetUNOConstant("ThisComponent", aThisDoc) ) @@ -98,7 +100,7 @@ SbxObject* StarBASIC::getVBAGlobals( ) // i#i68894# SbxVariable* StarBASIC::VBAFind( const String& rName, SbxClassType t ) { - if( rName.EqualsAscii("ThisComponent") ) + if( rName == aThisComponent ) return NULL; // rename to init globals if ( getVBAGlobals( ) ) |