diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 12:09:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-04 07:50:01 +0100 |
commit | 3dde9d988f0c9a432429389359c3531f10a4ff10 (patch) | |
tree | f6daed39591bf55907f44218fcac62f389322aa6 /basic | |
parent | da90193c8c0ab1f5403d37902f0037b51659b6d9 (diff) |
loplugin:constparams in various(1)
Change-Id: Ic80ca59abc3e104c7adf0c1eff1d16addf48bc8b
Reviewed-on: https://gerrit.libreoffice.org/44261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 4 | ||||
-rw-r--r-- | basic/source/inc/namecont.hxx | 2 | ||||
-rw-r--r-- | basic/source/inc/runtime.hxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/namecont.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
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<decltype(e)>::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 ) { |