summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-05-17 12:37:12 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2010-05-17 12:37:12 +0200
commit8ea2bf29c778e12551466eb635afedce75ac78c2 (patch)
treec215811a53afc767cbb7b4c6dba5448e70e18abb /basic
parent58c8df1c263fa69b820bd91512e1244986a8485f (diff)
#i10000# fixed bad merge
Diffstat (limited to 'basic')
-rwxr-xr-xbasic/source/classes/sb.cxx6
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( ) )