[Libreoffice-commits] core.git: basic/qa
Stephan Bergmann
sbergman at redhat.com
Wed Jun 4 01:16:33 PDT 2014
basic/qa/cppunit/basictest.hxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit e6655225e6ee229fb688fb65324e4e9b949065d5
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 4 10:16:06 2014 +0200
Avoid static BasicDLL (that would be destroyed after DeInitVCL now)
Change-Id: Id8968a7746815ecce79b6eb1ce971b74e770efa4
diff --git a/basic/qa/cppunit/basictest.hxx b/basic/qa/cppunit/basictest.hxx
index 369f0df..af0c0e8 100644
--- a/basic/qa/cppunit/basictest.hxx
+++ b/basic/qa/cppunit/basictest.hxx
@@ -27,10 +27,11 @@ class MacroSnippet
bool mbError;
SbModuleRef mpMod;
StarBASICRef mpBasic;
+ BasicDLL maDll; // we need a dll instance for resouce manager etc.
void InitSnippet()
{
- CPPUNIT_ASSERT_MESSAGE( "No resource manager", basicDLL().GetBasResMgr() != NULL );
+ CPPUNIT_ASSERT_MESSAGE( "No resource manager", maDll.GetBasResMgr() != NULL );
mpBasic = new StarBASIC();
StarBASIC::SetGlobalErrorHdl( LINK( this, MacroSnippet, BasicErrorHdl ) );
}
@@ -141,12 +142,6 @@ class MacroSnippet
StarBASIC::SetGlobalErrorHdl( Link() );
mbError = false;
}
-
- BasicDLL& basicDLL()
- {
- static BasicDLL maDll; // we need a dll instance for resouce manager etc.
- return maDll;
- }
};
IMPL_LINK( MacroSnippet, BasicErrorHdl, StarBASIC *, /*pBasic*/)
More information about the Libreoffice-commits
mailing list