From 2bd59de0da26665eaa2469180988a66b7648191a Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Mon, 17 May 2010 12:37:12 +0200 Subject: #i10000# fixed bad merge --- basic/source/classes/sb.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index dd6e2314ce..e4b4942d94 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( ) ) -- cgit v1.2.3