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 /include/linguistic | |
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 'include/linguistic')
-rw-r--r-- | include/linguistic/misc.hxx | 10 | ||||
-rw-r--r-- | include/linguistic/spelldta.hxx | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx index b65cd9bc9a92..8083dbab23e4 100644 --- a/include/linguistic/misc.hxx +++ b/include/linguistic/misc.hxx @@ -107,9 +107,9 @@ LNG_DLLPUBLIC bool LinguIsUnspecified( LanguageType nLanguage ); LNG_DLLPUBLIC bool LinguIsUnspecified( const OUString & rBcp47 ); std::vector< LanguageType > - LocaleSeqToLangVec( css::uno::Sequence< css::lang::Locale > &rLocaleSeq ); + LocaleSeqToLangVec( css::uno::Sequence< css::lang::Locale > const &rLocaleSeq ); css::uno::Sequence<sal_Int16> - LocaleSeqToLangSeq( css::uno::Sequence< css::lang::Locale > &rLocaleSeq ); + LocaleSeqToLangSeq( css::uno::Sequence< css::lang::Locale > const &rLocaleSeq ); // checks if file pointed to by rURL is readonly // and may also check return if such a file exists or not @@ -131,13 +131,13 @@ LNG_DLLPUBLIC sal_Int32 GetPosInWordToCheck( const OUString &rTxt, sal_Int32 nPo css::uno::Reference< css::linguistic2::XHyphenatedWord > RebuildHyphensAndControlChars( const OUString &rOrigWord, - css::uno::Reference< css::linguistic2::XHyphenatedWord > &rxHyphWord ); + css::uno::Reference< css::linguistic2::XHyphenatedWord > const &rxHyphWord ); LNG_DLLPUBLIC bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageType nLanguage ); inline bool IsUpper( const OUString &rText, LanguageType nLanguage ) { return IsUpper( rText, 0, rText.getLength(), nLanguage ); } -LNG_DLLPUBLIC CapType SAL_CALL capitalType(const OUString&, CharClass *); +LNG_DLLPUBLIC CapType SAL_CALL capitalType(const OUString&, CharClass const *); OUString ToLower( const OUString &rText, LanguageType nLanguage ); LNG_DLLPUBLIC bool HasDigits( const OUString &rText ); @@ -163,7 +163,7 @@ css::uno::Reference< bool bSearchPosDics, bool bSearchSpellEntry ); LNG_DLLPUBLIC DictionaryError AddEntryToDic( - css::uno::Reference< css::linguistic2::XDictionary > &rxDic, + css::uno::Reference< css::linguistic2::XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot = true ); diff --git a/include/linguistic/spelldta.hxx b/include/linguistic/spelldta.hxx index 7c23c2cca1bf..5c98989059f4 100644 --- a/include/linguistic/spelldta.hxx +++ b/include/linguistic/spelldta.hxx @@ -46,11 +46,11 @@ std::vector< OUString > void SeqRemoveNegEntries( std::vector< OUString > &rSeq, - css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &rxDicList, + css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &rxDicList, LanguageType nLanguage ); void SearchSimilarText( const OUString &rText, LanguageType nLanguage, - css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &xDicList, + css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &xDicList, std::vector< OUString > & rDicListProps ); |