diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/app.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index 9388d962655e..e0d50dc44b71 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -100,9 +100,7 @@ using namespace ::com::sun::star; static SfxApplication* g_pSfxApplication = nullptr; -#if HAVE_FEATURE_SCRIPTING static BasicDLL* pBasic = nullptr; -#endif #if HAVE_FEATURE_DESKTOP static SfxHelp* pSfxHelp = nullptr; @@ -199,10 +197,12 @@ SfxApplication::SfxApplication() pSfxHelp = new SfxHelp; #endif -#if HAVE_FEATURE_SCRIPTING pBasic = new BasicDLL; + +#if HAVE_FEATURE_SCRIPTING StarBASIC::SetGlobalErrorHdl( LINK( this, SfxApplication, GlobalBasicErrorHdl_Impl ) ); #endif + SAL_INFO( "sfx.appl", "} initialize DDE" ); } @@ -227,9 +227,7 @@ SfxApplication::~SfxApplication() if ( !pImpl->bDowning ) Deinitialize(); -#if HAVE_FEATURE_SCRIPTING delete pBasic; -#endif g_pSfxApplication = nullptr; } |