summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-16 19:05:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-16 19:07:27 +0200
commit934952678ba68d8137f6855aa71fa593c3158b02 (patch)
tree0b01bb9fd1505cf7710a325211159c518742476a /sc
parent5b72c4ce7fce353f42e7c8d1798514d49997d920 (diff)
fix crash in perfcheck
Change-Id: I8e053f5f0c6994c44485f61f5b3dc489271b8c5f
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/perf/scperfobj.cxx11
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();
}