diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-04-16 19:05:25 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-04-16 19:07:27 +0200 |
commit | 934952678ba68d8137f6855aa71fa593c3158b02 (patch) | |
tree | 0b01bb9fd1505cf7710a325211159c518742476a /sc | |
parent | 5b72c4ce7fce353f42e7c8d1798514d49997d920 (diff) |
fix crash in perfcheck
Change-Id: I8e053f5f0c6994c44485f61f5b3dc489271b8c5f
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(); } |