From 5176c1dd609939df388d58871dfa7db789e13523 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 3 Aug 2017 15:54:44 +0200 Subject: loplugin:constparams in sw part1 Change-Id: Id8d8afe268a82585ec2d3699411073dfb905d6ba Reviewed-on: https://gerrit.libreoffice.org/40734 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vbahelper/vbaaccesshelper.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/vbahelper') diff --git a/include/vbahelper/vbaaccesshelper.hxx b/include/vbahelper/vbaaccesshelper.hxx index 177bcddc2906..04460b165fb3 100644 --- a/include/vbahelper/vbaaccesshelper.hxx +++ b/include/vbahelper/vbaaccesshelper.hxx @@ -43,7 +43,7 @@ namespace ooo namespace vba { - inline css::uno::Reference< css::lang::XMultiServiceFactory > getVBAServiceFactory( SfxObjectShell* pShell ) + inline css::uno::Reference< css::lang::XMultiServiceFactory > getVBAServiceFactory( SfxObjectShell const * pShell ) { css::uno::Any aUnoVar; if ( !pShell || ! pShell->GetBasicManager()->GetGlobalUNOConstant( "VBAGlobals", aUnoVar ) ) @@ -53,7 +53,7 @@ namespace ooo } /// @throws css::uno::Exception - inline css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell* pShell, const sal_Char* _pAsciiName, const css::uno::Sequence< css::uno::Any >& aArgs ) + inline css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell const * pShell, const sal_Char* _pAsciiName, const css::uno::Sequence< css::uno::Any >& aArgs ) { OSL_PRECOND( pShell, "createVBAUnoAPIService: no shell!" ); OUString sVarName( OUString::createFromAscii( _pAsciiName ) ); @@ -62,7 +62,7 @@ namespace ooo } - inline bool isAlienDoc( SfxObjectShell& rDocShell, const char* pMimeType ) + inline bool isAlienDoc( SfxObjectShell const & rDocShell, const char* pMimeType ) { bool bRes( false ); const SfxMedium *pMedium = rDocShell.GetMedium(); @@ -71,10 +71,10 @@ namespace ooo bRes = pFilt->GetMimeType().equalsAscii( pMimeType ); return bRes; } - inline bool isAlienExcelDoc( SfxObjectShell& rDocShell ) { return isAlienDoc( rDocShell, "application/vnd.ms-excel" ); } + inline bool isAlienExcelDoc( SfxObjectShell const & rDocShell ) { return isAlienDoc( rDocShell, "application/vnd.ms-excel" ); } //VBAHELPER_DLLPRIVATE inline bool isAlienWordDoc( SfxObjectShell& rDocShell ) { return isAlienDoc( rDocShell, "application/vnd.ms-word" ); } // word seems to return an erroneous mime type :-/ "application/msword" not consistent with the excel one - inline bool isAlienWordDoc( SfxObjectShell& rDocShell ) { return isAlienDoc( rDocShell, "application/msword" ); } + inline bool isAlienWordDoc( SfxObjectShell const & rDocShell ) { return isAlienDoc( rDocShell, "application/msword" ); } } // openoffice } // org -- cgit