diff options
author | Noel Grandin <noel@peralex.com> | 2020-07-21 17:02:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-22 17:48:12 +0200 |
commit | 7405145605923123a09738829ead507fe6078e0c (patch) | |
tree | b85add1a367166cb53bcb90d08e7d0327e9e6f2f /embeddedobj/source/msole/olecomponent.hxx | |
parent | 950d7d4d51e68cfae3a5d0d23a3d39e84e548357 (diff) |
embeddedobj/msole: create instances with uno constructors
See tdf#74608 for motivation.
Change-Id: I11ad7cf96d65332e418f1854803d62a30bacc7e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99163
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'embeddedobj/source/msole/olecomponent.hxx')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embeddedobj/source/msole/olecomponent.hxx b/embeddedobj/source/msole/olecomponent.hxx index ffcf3e920162..9b0ca8038f85 100644 --- a/embeddedobj/source/msole/olecomponent.hxx +++ b/embeddedobj/source/msole/olecomponent.hxx @@ -33,6 +33,7 @@ #include <cppuhelper/implbase.hxx> #include <com/sun/star/util/XModifiable.hpp> #include <com/sun/star/util/XModifyListener.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> namespace cppu { @@ -65,7 +66,7 @@ class OleComponent : public ::cppu::WeakImplHelper< css::util::XCloseable, css:: css::uno::Sequence< css::embed::VerbDescriptor > m_aVerbList; css::uno::Sequence< css::datatransfer::DataFlavor > m_aDataFlavors; - css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; + css::uno::Reference< css::uno::XComponentContext > m_xContext; bool m_bOleInitialized; @@ -81,7 +82,7 @@ class OleComponent : public ::cppu::WeakImplHelper< css::util::XCloseable, css:: public: - OleComponent( const css::uno::Reference< css::lang::XMultiServiceFactory >& m_xFactory, + OleComponent( const css::uno::Reference< css::uno::XComponentContext >& xContext, OleEmbeddedObject* pOleObj ); virtual ~OleComponent() override; |