diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-02-06 21:05:42 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-02-07 09:13:50 +0100 |
commit | 75a7932bb4e5732467eb976046d6d9aab5d20640 (patch) | |
tree | feff53d298a357d4f6b7d2f98d2a4988a1ebaaff /oox | |
parent | 3fd32d48bf7d59175c59a224cf7a481eee5c158a (diff) |
test: move component context from subclasses to BootstrapFixture
To avoid duplication.
Change-Id: I0ee7c26d5d55bd868ead04c77e7f4ef2582f90e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88138
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/qa/unit/drawingml.cxx | 2 | ||||
-rw-r--r-- | oox/qa/unit/mathml.cxx | 2 | ||||
-rw-r--r-- | oox/qa/unit/shape.cxx | 2 | ||||
-rw-r--r-- | oox/qa/unit/vml.cxx | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx index f7fa171ff1ab..8a435363da92 100644 --- a/oox/qa/unit/drawingml.cxx +++ b/oox/qa/unit/drawingml.cxx @@ -25,7 +25,6 @@ using namespace ::com::sun::star; class OoxDrawingmlTest : public test::BootstrapFixture, public unotest::MacrosTest { private: - uno::Reference<uno::XComponentContext> mxComponentContext; uno::Reference<lang::XComponent> mxComponent; public: @@ -39,7 +38,6 @@ void OoxDrawingmlTest::setUp() { test::BootstrapFixture::setUp(); - mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory())); mxDesktop.set(frame::Desktop::create(mxComponentContext)); } diff --git a/oox/qa/unit/mathml.cxx b/oox/qa/unit/mathml.cxx index 3a5f928dad06..f352aad069c6 100644 --- a/oox/qa/unit/mathml.cxx +++ b/oox/qa/unit/mathml.cxx @@ -21,7 +21,6 @@ using namespace ::com::sun::star; class OoxMathmlTest : public test::BootstrapFixture, public unotest::MacrosTest { private: - uno::Reference<uno::XComponentContext> mxComponentContext; uno::Reference<lang::XComponent> mxComponent; public: @@ -34,7 +33,6 @@ void OoxMathmlTest::setUp() { test::BootstrapFixture::setUp(); - mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory())); mxDesktop.set(frame::Desktop::create(mxComponentContext)); } diff --git a/oox/qa/unit/shape.cxx b/oox/qa/unit/shape.cxx index 1391138b166b..f5c30187d7da 100644 --- a/oox/qa/unit/shape.cxx +++ b/oox/qa/unit/shape.cxx @@ -23,7 +23,6 @@ char const DATA_DIRECTORY[] = "/oox/qa/unit/data/"; class OoxShapeTest : public test::BootstrapFixture, public unotest::MacrosTest { private: - uno::Reference<uno::XComponentContext> mxComponentContext; uno::Reference<lang::XComponent> mxComponent; public: @@ -37,7 +36,6 @@ void OoxShapeTest::setUp() { test::BootstrapFixture::setUp(); - mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory())); mxDesktop.set(frame::Desktop::create(mxComponentContext)); } diff --git a/oox/qa/unit/vml.cxx b/oox/qa/unit/vml.cxx index fa3701735ec1..d9c969e0d422 100644 --- a/oox/qa/unit/vml.cxx +++ b/oox/qa/unit/vml.cxx @@ -25,7 +25,6 @@ char const DATA_DIRECTORY[] = "/oox/qa/unit/data/"; class OoxVmlTest : public test::BootstrapFixture, public unotest::MacrosTest { private: - uno::Reference<uno::XComponentContext> mxComponentContext; uno::Reference<lang::XComponent> mxComponent; public: @@ -39,7 +38,6 @@ void OoxVmlTest::setUp() { test::BootstrapFixture::setUp(); - mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory())); mxDesktop.set(frame::Desktop::create(mxComponentContext)); } |