diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/perf/scperfobj.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/qa/perf/scperfobj.cxx b/sc/qa/perf/scperfobj.cxx index 85ac79206a96..8bc12cab2cef 100644 --- a/sc/qa/perf/scperfobj.cxx +++ b/sc/qa/perf/scperfobj.cxx @@ -44,8 +44,6 @@ using namespace css::uno; namespace sc_apitest { -#define NUMBER_OF_TESTS 3 - class ScPerfObj : public CalcUnoApiTest { public: @@ -135,13 +133,10 @@ void ScPerfObj::setUp() void ScPerfObj::tearDown() { - if (nTest == NUMBER_OF_TESTS) + if (mxComponent.is()) { - if (mxComponent.is()) - { - closeDocument(mxComponent); - mxComponent.clear(); - } + closeDocument(mxComponent); + mxComponent.clear(); } CalcUnoApiTest::tearDown(); } |