diff options
Diffstat (limited to 'sc/qa/unit/parallelism.cxx')
-rw-r--r-- | sc/qa/unit/parallelism.cxx | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sc/qa/unit/parallelism.cxx b/sc/qa/unit/parallelism.cxx index 2b5b0ba73cc5..39a133648a00 100644 --- a/sc/qa/unit/parallelism.cxx +++ b/sc/qa/unit/parallelism.cxx @@ -30,8 +30,6 @@ public: virtual void setUp() override; virtual void tearDown() override; - void getNewDocShell(ScDocShellRef& rDocShellRef); - void testSUMIFS(); void testDivision(); void testVLOOKUP(); @@ -148,7 +146,10 @@ void ScParallelismTest::setUp() ScDLL::Init(); - getNewDocShell(m_xDocShell); + m_xDocShell = new ScDocShell( + SfxModelFlags::EMBEDDED_OBJECT | + SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS | + SfxModelFlags::DISABLE_DOCUMENT_RECOVERY); m_pDoc = &m_xDocShell->GetDocument(); sc::FormulaGroupInterpreter::disableOpenCL_UnitTestsOnly(); @@ -164,17 +165,11 @@ void ScParallelismTest::tearDown() if (!m_bThreadingFlagCfg) setThreadingFlag(false); + m_xDocShell->DoClose(); + m_xDocShell.clear(); test::BootstrapFixture::tearDown(); } -void ScParallelismTest::getNewDocShell( ScDocShellRef& rDocShellRef ) -{ - rDocShellRef = new ScDocShell( - SfxModelFlags::EMBEDDED_OBJECT | - SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS | - SfxModelFlags::DISABLE_DOCUMENT_RECOVERY); -} - void ScParallelismTest::testSUMIFS() { m_pDoc->InsertTab(0, "1"); |