From 3dde9d988f0c9a432429389359c3531f10a4ff10 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Nov 2017 12:09:52 +0200 Subject: loplugin:constparams in various(1) Change-Id: Ic80ca59abc3e104c7adf0c1eff1d16addf48bc8b Reviewed-on: https://gerrit.libreoffice.org/44261 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sbunoobj.cxx | 4 ++-- basic/source/inc/namecont.hxx | 2 +- basic/source/inc/runtime.hxx | 2 +- basic/source/runtime/runtime.cxx | 2 +- basic/source/uno/namecont.cxx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index d6e8210340a1..3c223f3010e7 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -362,7 +362,7 @@ OUString implGetExceptionMsg( const EXCEPTION& e ) return implGetExceptionMsg( e, cppu::UnoType::get().getTypeName() ); } -void implHandleBasicErrorException( BasicErrorException& e ) +void implHandleBasicErrorException( BasicErrorException const & e ) { ErrCode nError = StarBASIC::GetSfxFromVBError( (sal_uInt16)e.ErrorCode ); StarBASIC::Error( nError, e.ErrorMessageArgument ); @@ -521,7 +521,7 @@ SbxDataType unoToSbxType( const Reference< XIdlClass >& xIdlClass ) return eRetType; } -static void implSequenceToMultiDimArray( SbxDimArray*& pArray, Sequence< sal_Int32 >& indices, Sequence< sal_Int32 >& sizes, const Any& aValue, sal_Int32& dimension, bool bIsZeroIndex, Type const * pType ) +static void implSequenceToMultiDimArray( SbxDimArray*& pArray, Sequence< sal_Int32 >& indices, Sequence< sal_Int32 >& sizes, const Any& aValue, sal_Int32 dimension, bool bIsZeroIndex, Type const * pType ) { const Type& aType = aValue.getValueType(); TypeClass eTypeClass = aType.getTypeClass(); diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index 875e15a60897..72016292713f 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -255,7 +255,7 @@ protected: const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& aIndexFileName ); - void implImportLibDescriptor( SfxLibrary* pLib, ::xmlscript::LibDescriptor& rLib ); + void implImportLibDescriptor( SfxLibrary* pLib, ::xmlscript::LibDescriptor const & rLib ); // Methods to distinguish between different library types virtual SfxLibrary* SAL_CALL implCreateLibrary( const OUString& aName ) = 0; diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx index 64320ce6cee7..647fe364274e 100644 --- a/basic/source/inc/runtime.hxx +++ b/basic/source/inc/runtime.hxx @@ -193,7 +193,7 @@ public: // offer NumberFormatter also static static SvNumberFormatter* PrepareNumberFormatter( sal_uInt32 &rnStdDateIdx, sal_uInt32 &rnStdTimeIdx, sal_uInt32 &rnStdDateTimeIdx, - LanguageType const * peFormatterLangType=nullptr, DateOrder* peFormatterDateOrder=nullptr ); + LanguageType const * peFormatterLangType=nullptr, DateOrder const * peFormatterDateOrder=nullptr ); }; // There's one instance of this class for every executed sub-program. diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index e9a0215b0442..0c4af5336882 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -383,7 +383,7 @@ SvNumberFormatter* SbiInstance::GetNumberFormatter() // #39629 offer NumberFormatter static too SvNumberFormatter* SbiInstance::PrepareNumberFormatter( sal_uInt32 &rnStdDateIdx, sal_uInt32 &rnStdTimeIdx, sal_uInt32 &rnStdDateTimeIdx, - LanguageType const * peFormatterLangType, DateOrder* peFormatterDateOrder ) + LanguageType const * peFormatterLangType, DateOrder const * peFormatterDateOrder ) { SvNumberFormatter* pNumberFormater = nullptr; LanguageType eLangType; diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 4ac32587ec97..4010259771c4 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1718,7 +1718,7 @@ bool SfxLibraryContainer::implLoadLibraryIndexFile( SfxLibrary* pLib, } void SfxLibraryContainer::implImportLibDescriptor( SfxLibrary* pLib, - ::xmlscript::LibDescriptor& rLib ) + ::xmlscript::LibDescriptor const & rLib ) { if( !pLib->mbInitialised ) { -- cgit