summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-04-10 21:38:21 +0300
committerTor Lillqvist <tml@collabora.com>2018-05-31 21:49:44 +0300
commit330981b151fe1daba3d2c9cc5b99b56a434e7690 (patch)
treeacd778e2ae4d1b23ac0102294960855e04e64e70 /extensions
parent1d6e3b5f37b76a66d4b6ca23ca7adb9fc900c8b5 (diff)
Initialise mxMSF in all cases
Change-Id: Ib7fcdbe934b66971995574226f982a6865faab1b (cherry picked from commit 4bf4895739ea16f0fbc68099fd3372e9d8a389a5)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/unoobjw.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index a71d9376d725..b32d3a7fa036 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -311,7 +311,8 @@ public:
Reference<XMultiServiceFactory> xMSF);
void InitForClassItself(Reference<XInterface> xOrigin,
const OUString& sImplementationName,
- const IID& rIID);
+ const IID& rIID,
+ Reference<XMultiServiceFactory> xMSF);
void InitForOutgoing(Reference<XInterface> xOrigin,
const OUString& sInterfaceName,
const IID& rIID,
@@ -567,13 +568,15 @@ void CXTypeInfo::InitForCoclass(Reference<XInterface> xOrigin,
void CXTypeInfo::InitForClassItself(Reference<XInterface> xOrigin,
const OUString& sImplementationName,
- const IID& rIID)
+ const IID& rIID,
+ Reference<XMultiServiceFactory> xMSF)
{
SAL_INFO("extensions.olebridge", "CXTypeInfo::InitForClassItself() this=" << this << " for " << rIID << " (" << sImplementationName << ")");
meKind = Kind::MAIN;
mxOrigin = xOrigin;
msImplementationName = sImplementationName;
maIID = rIID;
+ mxMSF = xMSF;
}
void CXTypeInfo::InitForOutgoing(Reference<XInterface> xOrigin,
@@ -1092,7 +1095,7 @@ STDMETHODIMP InterfaceOleWrapper::GetTypeInfo(unsigned int iTInfo, LCID, ITypeIn
pTypeInfo->AddRef();
- pTypeInfo->InitForClassItself(m_xOrigin, m_sImplementationName, aIID);
+ pTypeInfo->InitForClassItself(m_xOrigin, m_sImplementationName, aIID, m_smgr);
*ppTInfo = pTypeInfo;