diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:09:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:14:40 +0200 |
commit | 597191920ae8ba1f95ae7f6f916a7bef67a58990 (patch) | |
tree | 4d23d785f8b3e859961937c87bff8a021fc46629 /extensions | |
parent | 3e9619c747c1c4e50a6404313699643452b14a34 (diff) |
loplugin:constparams: extensions (clang-cl)
Change-Id: I1665228a622b18757951b725467933699f9871ae
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/activex/SOActiveX.cxx | 2 | ||||
-rw-r--r-- | extensions/source/activex/SOActiveX.h | 2 | ||||
-rw-r--r-- | extensions/source/ole/oleobjw.cxx | 2 | ||||
-rw-r--r-- | extensions/source/ole/oleobjw.hxx | 2 | ||||
-rw-r--r-- | extensions/source/ole/servprov.cxx | 10 | ||||
-rw-r--r-- | extensions/source/ole/servprov.hxx | 8 | ||||
-rw-r--r-- | extensions/source/ole/unoobjw.cxx | 4 | ||||
-rw-r--r-- | extensions/source/ole/unoobjw.hxx | 4 |
8 files changed, 17 insertions, 17 deletions
diff --git a/extensions/source/activex/SOActiveX.cxx b/extensions/source/activex/SOActiveX.cxx index 9bcc32da5be4..436700851200 100644 --- a/extensions/source/activex/SOActiveX.cxx +++ b/extensions/source/activex/SOActiveX.cxx @@ -628,7 +628,7 @@ HRESULT CSOActiveX::CreateFrameOldWay( HWND hwnd, int width, int height ) return S_OK; } -HRESULT CSOActiveX::CallLoadComponentFromURL1PBool( OLECHAR* sUrl, OLECHAR* sArgName, BOOL sArgVal ) +HRESULT CSOActiveX::CallLoadComponentFromURL1PBool( OLECHAR const * sUrl, OLECHAR const * sArgName, BOOL sArgVal ) { SAFEARRAY FAR* pPropVals = SafeArrayCreateVector( VT_DISPATCH, 0, 1 ); long ix = 0; diff --git a/extensions/source/activex/SOActiveX.h b/extensions/source/activex/SOActiveX.h index 04055eaf74df..14451fcdbf51 100644 --- a/extensions/source/activex/SOActiveX.h +++ b/extensions/source/activex/SOActiveX.h @@ -202,7 +202,7 @@ public: HRESULT GetUnoStruct( OLECHAR const * sStructName, CComPtr<IDispatch>& pdispResult ); HRESULT LoadURLToFrame(); HRESULT CallDispatchMethod( OLECHAR const * sUrl, CComVariant* sArgNames, CComVariant* sArgVal, unsigned int count ); - HRESULT CallLoadComponentFromURL1PBool( OLECHAR* sUrl, OLECHAR* sArgName, BOOL sArgVal ); + HRESULT CallLoadComponentFromURL1PBool( OLECHAR const * sUrl, OLECHAR const * sArgName, BOOL sArgVal ); HRESULT GetUrlStruct( OLECHAR const * sUrl, CComPtr<IDispatch>& pdispUrl ); HRESULT Cleanup(); HRESULT TerminateOffice(); diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx index 14d63e450784..197e635f1937 100644 --- a/extensions/source/ole/oleobjw.cxx +++ b/extensions/source/ole/oleobjw.cxx @@ -85,7 +85,7 @@ std::unordered_map<sal_uIntPtr, WeakReference<XInterface> > ComPtrToWrapperMap; *****************************************************************************/ -IUnknownWrapper_Impl::IUnknownWrapper_Impl( Reference<XMultiServiceFactory>& xFactory, +IUnknownWrapper_Impl::IUnknownWrapper_Impl( Reference<XMultiServiceFactory> const & xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass): UnoConversionUtilities<IUnknownWrapper_Impl>( xFactory, unoWrapperClass, comWrapperClass), m_pxIdlClass( nullptr), m_eJScript( JScriptUndefined), diff --git a/extensions/source/ole/oleobjw.hxx b/extensions/source/ole/oleobjw.hxx index 98bf9732fbcc..c46530290873 100644 --- a/extensions/source/ole/oleobjw.hxx +++ b/extensions/source/ole/oleobjw.hxx @@ -63,7 +63,7 @@ class IUnknownWrapper_Impl : public WeakImplHelper< XBridgeSupplier2, XInitializ { public: - IUnknownWrapper_Impl(Reference<XMultiServiceFactory> &xFactory, + IUnknownWrapper_Impl(Reference<XMultiServiceFactory> const &xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass); ~IUnknownWrapper_Impl() override; diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx index 86ecc75b0f45..76663c49ec28 100644 --- a/extensions/source/ole/servprov.cxx +++ b/extensions/source/ole/servprov.cxx @@ -53,7 +53,7 @@ DEFINE_GUID(OID_ServiceManager, 0x82154420, 0xfbf, 0x11d4, 0x83, 0x13, 0x0, 0x50 *****************************************************************************/ ProviderOleWrapper_Impl::ProviderOleWrapper_Impl(const Reference<XMultiServiceFactory>& smgr, - const Reference<XSingleServiceFactory>& xSFact, GUID* pGuid) + const Reference<XSingleServiceFactory>& xSFact, GUID const * pGuid) : m_xSingleServiceFactory(xSFact), m_smgr( smgr) { @@ -188,7 +188,7 @@ STDMETHODIMP ProviderOleWrapper_Impl::LockServer(int /*fLock*/) OneInstanceOleWrapper_Impl::OneInstanceOleWrapper_Impl( const Reference<XMultiServiceFactory>& smgr, const Reference<XInterface>& xInst, - GUID* pGuid ) + GUID const * pGuid ) : m_refCount(0) , m_xInst(xInst) , m_factoryHandle(0) @@ -623,7 +623,7 @@ OleServer_Impl::OleServer_Impl( const Reference<XMultiServiceFactory>& smgr): a >>= m_bridgeSupplier; } - (void) provideInstance( m_smgr, const_cast<GUID*>(&OID_ServiceManager) ); + (void) provideInstance( m_smgr, &OID_ServiceManager ); } OleServer_Impl::~OleServer_Impl() @@ -653,7 +653,7 @@ css::uno::Sequence<OUString> OleServer_Impl::getSupportedServiceNames() "com.sun.star.bridge.oleautomation.ApplicationRegistration"}; } -bool OleServer_Impl::provideService(const Reference<XSingleServiceFactory>& xSFact, GUID* guid) +bool OleServer_Impl::provideService(const Reference<XSingleServiceFactory>& xSFact, GUID const * guid) { IClassFactoryWrapper* pFac = new ProviderOleWrapper_Impl( m_smgr, xSFact, guid); @@ -664,7 +664,7 @@ bool OleServer_Impl::provideService(const Reference<XSingleServiceFactory>& xSFa return pFac->registerClass(); } -bool OleServer_Impl::provideInstance(const Reference<XInterface>& xInst, GUID* guid) +bool OleServer_Impl::provideInstance(const Reference<XInterface>& xInst, GUID const * guid) { IClassFactoryWrapper* pFac = new OneInstanceOleWrapper_Impl( m_smgr, xInst, guid ); diff --git a/extensions/source/ole/servprov.hxx b/extensions/source/ole/servprov.hxx index bff863b2f0c0..67dc9a71723d 100644 --- a/extensions/source/ole/servprov.hxx +++ b/extensions/source/ole/servprov.hxx @@ -81,7 +81,7 @@ class ProviderOleWrapper_Impl : public IClassFactoryWrapper public: ProviderOleWrapper_Impl( const Reference<XMultiServiceFactory>& smgr, - const Reference<XSingleServiceFactory>& xSFactory, GUID* pGuid); + const Reference<XSingleServiceFactory>& xSFactory, GUID const * pGuid); virtual ~ProviderOleWrapper_Impl(); bool registerClass() override; @@ -123,7 +123,7 @@ class OneInstanceOleWrapper_Impl : public IClassFactoryWrapper { public: - OneInstanceOleWrapper_Impl( const Reference<XMultiServiceFactory>& smgr, const Reference<XInterface>& xInst, GUID* pGuid ); + OneInstanceOleWrapper_Impl( const Reference<XMultiServiceFactory>& smgr, const Reference<XInterface>& xInst, GUID const * pGuid ); virtual ~OneInstanceOleWrapper_Impl(); bool registerClass() override; @@ -258,8 +258,8 @@ public: protected: - bool provideService(const Reference<XSingleServiceFactory>& xMulFact, GUID* guid); - bool provideInstance(const Reference<XInterface>& xInst, GUID* guid); + bool provideService(const Reference<XSingleServiceFactory>& xMulFact, GUID const * guid); + bool provideInstance(const Reference<XInterface>& xInst, GUID const * guid); list< IClassFactoryWrapper* > m_wrapperList; Reference< XBridgeSupplier2 > m_bridgeSupplier; diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index 7fd2749eedc6..bd8f386a5b50 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -88,7 +88,7 @@ static void writeExcepinfo(EXCEPINFO * pInfo, const OUString& message) } } -InterfaceOleWrapper_Impl::InterfaceOleWrapper_Impl( Reference<XMultiServiceFactory>& xFactory, +InterfaceOleWrapper_Impl::InterfaceOleWrapper_Impl( Reference<XMultiServiceFactory> const & xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass): UnoConversionUtilities<InterfaceOleWrapper_Impl>( xFactory, unoWrapperClass, comWrapperClass), m_defaultValueType( 0) @@ -1214,7 +1214,7 @@ STDMETHODIMP InterfaceOleWrapper_Impl::GetNameSpaceParent( // UnoObjectWrapperRemoteOpt --------------------------------------------------- -UnoObjectWrapperRemoteOpt::UnoObjectWrapperRemoteOpt( Reference<XMultiServiceFactory>& aFactory, +UnoObjectWrapperRemoteOpt::UnoObjectWrapperRemoteOpt( Reference<XMultiServiceFactory> const & aFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass): InterfaceOleWrapper_Impl( aFactory, unoWrapperClass, comWrapperClass), m_currentId(1) diff --git a/extensions/source/ole/unoobjw.hxx b/extensions/source/ole/unoobjw.hxx index 155f503f51cd..a92cf97b2bfc 100644 --- a/extensions/source/ole/unoobjw.hxx +++ b/extensions/source/ole/unoobjw.hxx @@ -109,7 +109,7 @@ class InterfaceOleWrapper_Impl : public WeakImplHelper<XBridgeSupplier2, XInitia public: - InterfaceOleWrapper_Impl(Reference<XMultiServiceFactory>& xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass); + InterfaceOleWrapper_Impl(Reference<XMultiServiceFactory> const & xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass); ~InterfaceOleWrapper_Impl() override; /* IUnknown methods */ @@ -237,7 +237,7 @@ protected: class UnoObjectWrapperRemoteOpt: public InterfaceOleWrapper_Impl { public: - UnoObjectWrapperRemoteOpt( Reference<XMultiServiceFactory>& aFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass); + UnoObjectWrapperRemoteOpt( Reference<XMultiServiceFactory> const & aFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass); ~UnoObjectWrapperRemoteOpt() override; STDMETHOD( GetIDsOfNames )( REFIID riid, OLECHAR ** rgszNames, unsigned int cNames, |