summaryrefslogtreecommitdiffstats
path: root/include/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 15:54:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 20:49:15 +0200
commit5176c1dd609939df388d58871dfa7db789e13523 (patch)
tree487fc3e63ca2ab92ff37bbabca32f3841d84408d /include/vbahelper
parenttweak insert break menu to load the same with native gtk builder (diff)
downloadcore-5176c1dd609939df388d58871dfa7db789e13523.tar.gz
core-5176c1dd609939df388d58871dfa7db789e13523.zip
loplugin:constparams in sw part1
Change-Id: Id8d8afe268a82585ec2d3699411073dfb905d6ba Reviewed-on: https://gerrit.libreoffice.org/40734 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbaaccesshelper.hxx10
1 files changed, 5 insertions, 5 deletions
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