diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-20 12:00:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-20 13:41:12 +0200 |
commit | 236305f56743e11fb2102a0c3668fd310d630f7d (patch) | |
tree | 5e9f76e596ab8b773a9fbeb6914a9ac896d670be /linguistic/source/misc.cxx | |
parent | 08366676c82d585019b575eb9ddb2d9fc537dd76 (diff) |
loplugin:constparams in linguistic
Change-Id: I7495c476b52a804971eaa97db011530842025fa9
Reviewed-on: https://gerrit.libreoffice.org/40221
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index bf9016dc37c2..3c19206dc8b7 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -336,7 +336,7 @@ bool SaveDictionaries( const uno::Reference< XSearchableDictionaryList > &xDicLi } DictionaryError AddEntryToDic( - uno::Reference< XDictionary > &rxDic, + uno::Reference< XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot ) @@ -376,7 +376,7 @@ DictionaryError AddEntryToDic( } std::vector< LanguageType > - LocaleSeqToLangVec( uno::Sequence< Locale > &rLocaleSeq ) + LocaleSeqToLangVec( uno::Sequence< Locale > const &rLocaleSeq ) { const Locale *pLocale = rLocaleSeq.getConstArray(); sal_Int32 nCount = rLocaleSeq.getLength(); @@ -391,7 +391,7 @@ std::vector< LanguageType > } uno::Sequence< sal_Int16 > - LocaleSeqToLangSeq( uno::Sequence< Locale > &rLocaleSeq ) + LocaleSeqToLangSeq( uno::Sequence< Locale > const &rLocaleSeq ) { const Locale *pLocale = rLocaleSeq.getConstArray(); sal_Int32 nCount = rLocaleSeq.getLength(); @@ -436,7 +436,7 @@ bool IsReadOnly( const OUString &rURL, bool *pbExist ) } static bool GetAltSpelling( sal_Int16 &rnChgPos, sal_Int16 &rnChgLen, OUString &rRplc, - uno::Reference< XHyphenatedWord > &rxHyphWord ) + uno::Reference< XHyphenatedWord > const &rxHyphWord ) { bool bRes = rxHyphWord->isAlternativeSpelling(); if (bRes) @@ -521,7 +521,7 @@ sal_Int32 GetPosInWordToCheck( const OUString &rTxt, sal_Int32 nPos ) uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars( const OUString &rOrigWord, - uno::Reference< XHyphenatedWord > &rxHyphWord ) + uno::Reference< XHyphenatedWord > const &rxHyphWord ) { uno::Reference< XHyphenatedWord > xRes; if (!rOrigWord.isEmpty() && rxHyphWord.is()) @@ -604,7 +604,7 @@ bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageTyp && !(nFlags & KCharacterType::LOWER); } -CapType SAL_CALL capitalType(const OUString& aTerm, CharClass * pCC) +CapType SAL_CALL capitalType(const OUString& aTerm, CharClass const * pCC) { sal_Int32 tlen = aTerm.getLength(); if (pCC && tlen) |