From d1904070e749d38d7af6323d6dcb3c3c156a3853 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 29 Mar 2016 14:29:52 +0300 Subject: ScOpenCLTest is not a FiltersTest Remove unneeded derivation and thus the load() function implementation too. Change-Id: If796741198fea141c0d68505893a7f70f048d515 --- sc/qa/unit/opencl-test.cxx | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'sc/qa') diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx index dfdf56086a65..26582c219c73 100644 --- a/sc/qa/unit/opencl-test.cxx +++ b/sc/qa/unit/opencl-test.cxx @@ -4,7 +4,6 @@ */ #include -#include #include #include #include @@ -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(); -- cgit