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

Tor Lillqvist tml at collabora.com
Tue Mar 29 11:35:48 UTC 2016


 sc/qa/unit/opencl-test.cxx |   22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

New commits:
commit d1904070e749d38d7af6323d6dcb3c3c156a3853
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Mar 29 14:29:52 2016 +0300

    ScOpenCLTest is not a FiltersTest
    
    Remove unneeded derivation and thus the load() function implementation
    too.
    
    Change-Id: If796741198fea141c0d68505893a7f70f048d515

diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index dfdf560..26582c2 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -4,7 +4,6 @@
  */
 
 #include <sal/config.h>
-#include <unotest/filters-test.hxx>
 #include <test/bootstrapfixture.hxx>
 #include <rtl/strbuf.hxx>
 #include <osl/file.hxx>
@@ -38,11 +37,8 @@
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 
-/* Implementation of Filters test */
-
 class ScOpenCLTest
-    : public test::FiltersTest
-    , public ScBootstrapFixture
+    : public ScBootstrapFixture
 {
 public:
     ScOpenCLTest();
@@ -63,9 +59,6 @@ public:
     virtual void setUp() override;
     virtual void tearDown() override;
 
-    virtual bool load( const OUString &rFilter, const OUString &rURL,
-            const OUString &rUserData, SfxFilterFlags nFilterFlags,
-            SotClipboardFormatId nClipboardID, unsigned int nFilterVersion) override;
     void testSystematic();
     void testSharedFormulaXLS();
 #if 0
@@ -557,19 +550,6 @@ bool ScOpenCLTest::initTestEnv(const OUString& fileName, sal_Int32 nFormat,
     return true;
 }
 
-bool ScOpenCLTest::load(const OUString &rFilter, const OUString &rURL,
-    const OUString &rUserData, SfxFilterFlags nFilterFlags,
-        SotClipboardFormatId nClipboardID, unsigned int nFilterVersion)
-{
-    ScDocShellRef xDocShRef = ScBootstrapFixture::load(rURL, rFilter, rUserData,
-        OUString(), nFilterFlags, nClipboardID, nFilterVersion );
-    bool bLoaded = xDocShRef.Is();
-    //reference counting of ScDocShellRef is very confused.
-    if (bLoaded)
-        xDocShRef->DoClose();
-    return bLoaded;
-}
-
 bool ScOpenCLTest::detectOpenCLDevice()
 {
     sc::FormulaGroupInterpreter::enableOpenCL_UnitTestsOnly();


More information about the Libreoffice-commits mailing list