[Libreoffice-commits] core.git: sc/qa

Markus Mohrhard markus.mohrhard at googlemail.com
Sat May 7 00:23:04 UTC 2016


 sc/qa/perf/scperfobj.cxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit d223aa57a1d6e356f24cd5ac4ddd702336b2ee87
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat May 7 01:22:11 2016 +0200

    these static vars are cargo cult copy&paste
    
    Change-Id: Iabf02c2afc156cf30841eda48f3d67b18bb1e720
    Reviewed-on: https://gerrit.libreoffice.org/24710
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/qa/perf/scperfobj.cxx b/sc/qa/perf/scperfobj.cxx
index 8bc12ca..c08dcb1 100644
--- a/sc/qa/perf/scperfobj.cxx
+++ b/sc/qa/perf/scperfobj.cxx
@@ -78,8 +78,7 @@ public:
 
 private:
 
-    static sal_Int32 nTest;
-    static uno::Reference< lang::XComponent > mxComponent;
+    uno::Reference< lang::XComponent > mxComponent;
 
     // tests
     void testSheetFindAll();
@@ -102,9 +101,6 @@ private:
     void testMatConcatLarge();
 };
 
-sal_Int32 ScPerfObj::nTest = 0;
-uno::Reference< lang::XComponent > ScPerfObj::mxComponent;
-
 ScPerfObj::ScPerfObj()
     : CalcUnoApiTest("sc/qa/perf/testdocuments/")
 {
@@ -112,9 +108,6 @@ ScPerfObj::ScPerfObj()
 
 uno::Reference< uno::XInterface > ScPerfObj::init(const OUString& aFileName)
 {
-    if (mxComponent.is())
-        closeDocument(mxComponent);
-
     OUString aFileURL;
     createFileURL(aFileName, aFileURL);
 
@@ -127,7 +120,6 @@ uno::Reference< uno::XInterface > ScPerfObj::init(const OUString& aFileName)
 
 void ScPerfObj::setUp()
 {
-    nTest++;
     CalcUnoApiTest::setUp();
 }
 


More information about the Libreoffice-commits mailing list