diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-02 11:18:04 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-02 15:35:00 +0200 |
commit | 83a8d5a275e9ba636a133ff25bdb53974aae87ae (patch) | |
tree | c6a77d602a23323d818ddb3c2ae11621c11c34d9 /toolkit | |
parent | 49e3ebcaa1ff06e9ae35ba4117e2465e447cee78 (diff) |
BootstrapFixture: get rid of mxComponentContext
Change-Id: I0318485c3c0159277e47096e0c7e0df8ed109ea4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169865
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/qa/cppunit/Dialog.cxx | 7 | ||||
-rw-r--r-- | toolkit/qa/cppunit/EventContainer.cxx | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/toolkit/qa/cppunit/Dialog.cxx b/toolkit/qa/cppunit/Dialog.cxx index 607a1863fc0b..e41b0bf946f6 100644 --- a/toolkit/qa/cppunit/Dialog.cxx +++ b/toolkit/qa/cppunit/Dialog.cxx @@ -33,18 +33,17 @@ class DialogTest : public test::BootstrapFixture, public unotest::MacrosTest CPPUNIT_TEST_FIXTURE(DialogTest, testDialogSizeable) { uno::Reference<awt::XDialog> xDialog; - uno::Reference<lang::XMultiComponentFactory> xFactory(mxComponentContext->getServiceManager(), + uno::Reference<lang::XMultiComponentFactory> xFactory(m_xContext->getServiceManager(), uno::UNO_SET_THROW); uno::Reference<awt::XControlModel> xControlModel( xFactory->createInstanceWithContext(u"com.sun.star.awt.UnoControlDialogModel"_ustr, - mxComponentContext), + m_xContext), uno::UNO_QUERY_THROW); uno::Reference<beans::XPropertySet> xPropSet(xControlModel, uno::UNO_QUERY_THROW); xPropSet->setPropertyValue(u"Sizeable"_ustr, uno::Any(true)); - uno::Reference<awt::XUnoControlDialog> xControl - = awt::UnoControlDialog::create(mxComponentContext); + uno::Reference<awt::XUnoControlDialog> xControl = awt::UnoControlDialog::create(m_xContext); xControl->setModel(xControlModel); xControl->setVisible(true); xDialog.set(xControl, uno::UNO_QUERY_THROW); diff --git a/toolkit/qa/cppunit/EventContainer.cxx b/toolkit/qa/cppunit/EventContainer.cxx index 1551f0584a25..8bd4e57c631c 100644 --- a/toolkit/qa/cppunit/EventContainer.cxx +++ b/toolkit/qa/cppunit/EventContainer.cxx @@ -38,11 +38,10 @@ class EventContainerTest : public test::BootstrapFixture // Otherwise this would break macro signatures. CPPUNIT_TEST_FIXTURE(EventContainerTest, testInsertOrder) { - Reference<XMultiComponentFactory> xFactory(mxComponentContext->getServiceManager(), - UNO_SET_THROW); + Reference<XMultiComponentFactory> xFactory(m_xContext->getServiceManager(), UNO_SET_THROW); Reference<XControlModel> xControlModel( xFactory->createInstanceWithContext(u"com.sun.star.awt.UnoControlDialogModel"_ustr, - mxComponentContext), + m_xContext), UNO_QUERY_THROW); Reference<beans::XPropertySet> xPropSet(xControlModel, UNO_QUERY_THROW); |