summaryrefslogtreecommitdiff
path: root/sw/qa/api
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-02-06 21:05:42 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-02-07 09:13:50 +0100
commit75a7932bb4e5732467eb976046d6d9aab5d20640 (patch)
treefeff53d298a357d4f6b7d2f98d2a4988a1ebaaff /sw/qa/api
parent3fd32d48bf7d59175c59a224cf7a481eee5c158a (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 'sw/qa/api')
-rw-r--r--sw/qa/api/SwXDocumentIndex.cxx2
-rw-r--r--sw/qa/api/SwXDocumentSettings.cxx2
-rw-r--r--sw/qa/api/SwXTextFrame.cxx2
3 files changed, 0 insertions, 6 deletions
diff --git a/sw/qa/api/SwXDocumentIndex.cxx b/sw/qa/api/SwXDocumentIndex.cxx
index e08eb9c00685..e76db35124fe 100644
--- a/sw/qa/api/SwXDocumentIndex.cxx
+++ b/sw/qa/api/SwXDocumentIndex.cxx
@@ -45,7 +45,6 @@ class SwXDocumentIndex final : public test::BootstrapFixture,
public apitest::XServiceInfo,
public apitest::XComponent
{
- uno::Reference<uno::XComponentContext> mxComponentContext;
uno::Reference<text::XTextDocument> mxTextDocument;
uno::Reference<text::XTextRange> mxTextRange;
uno::Reference<text::XTextContent> mxTextContent;
@@ -81,7 +80,6 @@ void SwXDocumentIndex::setUp()
{
test::BootstrapFixture::setUp();
- mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory()));
mxDesktop.set(frame::Desktop::create(mxComponentContext));
mxTextDocument = uno::Reference<text::XTextDocument>(
loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument"),
diff --git a/sw/qa/api/SwXDocumentSettings.cxx b/sw/qa/api/SwXDocumentSettings.cxx
index 84907fa5da83..5f91f645a12d 100644
--- a/sw/qa/api/SwXDocumentSettings.cxx
+++ b/sw/qa/api/SwXDocumentSettings.cxx
@@ -38,7 +38,6 @@ class SwXDocumentSettings final : public test::BootstrapFixture,
public apitest::XServiceInfo
{
private:
- uno::Reference<uno::XComponentContext> mxComponentContext;
uno::Reference<lang::XComponent> mxComponent;
public:
@@ -63,7 +62,6 @@ void SwXDocumentSettings::setUp()
{
test::BootstrapFixture::setUp();
- mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory()));
mxDesktop.set(frame::Desktop::create(mxComponentContext));
}
diff --git a/sw/qa/api/SwXTextFrame.cxx b/sw/qa/api/SwXTextFrame.cxx
index 19fe73f808b7..09237028a5ed 100644
--- a/sw/qa/api/SwXTextFrame.cxx
+++ b/sw/qa/api/SwXTextFrame.cxx
@@ -41,7 +41,6 @@ class SwXTextFrame final : public test::BootstrapFixture,
public apitest::XServiceInfo,
public apitest::XComponent
{
- uno::Reference<uno::XComponentContext> mxComponentContext;
uno::Reference<text::XTextDocument> mxTextDocument;
public:
@@ -67,7 +66,6 @@ void SwXTextFrame::setUp()
{
test::BootstrapFixture::setUp();
- mxComponentContext.set(comphelper::getComponentContext(getMultiServiceFactory()));
mxDesktop.set(frame::Desktop::create(mxComponentContext));
mxTextDocument = uno::Reference<text::XTextDocument>(
loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument"),