Kaydet (Commit) 72fefd7a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

These fields can be const

Change-Id: I379770f93799668e44beab03fb64ceddffabe85a
Reviewed-on: https://gerrit.libreoffice.org/49326Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 76d6fcd0
...@@ -56,10 +56,9 @@ DEFINE_GUID(OID_ServiceManager, 0x82154420, 0xfbf, 0x11d4, 0x83, 0x13, 0x0, 0x50 ...@@ -56,10 +56,9 @@ DEFINE_GUID(OID_ServiceManager, 0x82154420, 0xfbf, 0x11d4, 0x83, 0x13, 0x0, 0x50
ProviderOleWrapper_Impl::ProviderOleWrapper_Impl(const Reference<XMultiServiceFactory>& smgr, ProviderOleWrapper_Impl::ProviderOleWrapper_Impl(const Reference<XMultiServiceFactory>& smgr,
const Reference<XSingleServiceFactory>& xSFact, GUID const * pGuid) const Reference<XSingleServiceFactory>& xSFact, GUID const * pGuid)
: m_xSingleServiceFactory(xSFact), : m_xSingleServiceFactory(xSFact),
m_guid(*pGuid),
m_smgr( smgr) m_smgr( smgr)
{ {
m_guid = *pGuid;
Reference<XInterface> xInt = smgr->createInstance("com.sun.star.bridge.oleautomation.BridgeSupplier"); Reference<XInterface> xInt = smgr->createInstance("com.sun.star.bridge.oleautomation.BridgeSupplier");
if (xInt.is()) if (xInt.is())
...@@ -192,11 +191,10 @@ OneInstanceOleWrapper_Impl::OneInstanceOleWrapper_Impl( const Reference<XMultiS ...@@ -192,11 +191,10 @@ OneInstanceOleWrapper_Impl::OneInstanceOleWrapper_Impl( const Reference<XMultiS
GUID const * pGuid ) GUID const * pGuid )
: m_refCount(0) : m_refCount(0)
, m_xInst(xInst) , m_xInst(xInst)
, m_guid(*pGuid)
, m_factoryHandle(0) , m_factoryHandle(0)
, m_smgr(smgr) , m_smgr(smgr)
{ {
m_guid = *pGuid;
Reference<XInterface> xInt = m_smgr->createInstance("com.sun.star.bridge.oleautomation.BridgeSupplier"); Reference<XInterface> xInt = m_smgr->createInstance("com.sun.star.bridge.oleautomation.BridgeSupplier");
if (xInt.is()) if (xInt.is())
......
...@@ -100,7 +100,7 @@ protected: ...@@ -100,7 +100,7 @@ protected:
oslInterlockedCount m_refCount; oslInterlockedCount m_refCount;
Reference<XSingleServiceFactory> m_xSingleServiceFactory; Reference<XSingleServiceFactory> m_xSingleServiceFactory;
GUID m_guid; const GUID m_guid;
DWORD m_factoryHandle; DWORD m_factoryHandle;
Reference<XBridgeSupplier2> m_bridgeSupplier; Reference<XBridgeSupplier2> m_bridgeSupplier;
Reference<XMultiServiceFactory> m_smgr; Reference<XMultiServiceFactory> m_smgr;
...@@ -142,7 +142,7 @@ protected: ...@@ -142,7 +142,7 @@ protected:
oslInterlockedCount m_refCount; oslInterlockedCount m_refCount;
Reference<XInterface> m_xInst; Reference<XInterface> m_xInst;
GUID m_guid; const GUID m_guid;
DWORD m_factoryHandle; DWORD m_factoryHandle;
Reference<XBridgeSupplier2> m_bridgeSupplier; Reference<XBridgeSupplier2> m_bridgeSupplier;
Reference<XMultiServiceFactory> m_smgr; Reference<XMultiServiceFactory> m_smgr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment