summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 12:00:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 13:41:12 +0200
commit236305f56743e11fb2102a0c3668fd310d630f7d (patch)
tree5e9f76e596ab8b773a9fbeb6914a9ac896d670be /linguistic
parent08366676c82d585019b575eb9ddb2d9fc537dd76 (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')
-rw-r--r--linguistic/inc/iprcache.hxx4
-rw-r--r--linguistic/source/dicimp.cxx2
-rw-r--r--linguistic/source/dicimp.hxx2
-rw-r--r--linguistic/source/iprcache.cxx8
-rw-r--r--linguistic/source/misc.cxx12
-rw-r--r--linguistic/source/spelldsp.cxx2
-rw-r--r--linguistic/source/spelldsp.hxx2
-rw-r--r--linguistic/source/spelldta.cxx4
8 files changed, 18 insertions, 18 deletions
diff --git a/linguistic/inc/iprcache.hxx b/linguistic/inc/iprcache.hxx
index da467b3468f1..10c47b5c7df7 100644
--- a/linguistic/inc/iprcache.hxx
+++ b/linguistic/inc/iprcache.hxx
@@ -59,8 +59,8 @@ class FlushListener :
public:
FlushListener( SpellCache& rFO ) : mrSpellCache(rFO) {}
- void SetDicList( css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &rDL );
- void SetPropSet( css::uno::Reference< css::linguistic2::XLinguProperties > &rPS );
+ void SetDicList( css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &rDL );
+ void SetPropSet( css::uno::Reference< css::linguistic2::XLinguProperties > const &rPS );
//XEventListener
virtual void SAL_CALL disposing( const css::lang::EventObject& rSource ) override;
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index dd32758e2482..3fa1c1475145 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -83,7 +83,7 @@ static bool getTag(const OString &rLine, const sal_Char *pTagName,
}
-sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, LanguageType &nLng, bool &bNeg )
+sal_Int16 ReadDicVersion( SvStreamPtr const &rpStream, LanguageType &nLng, bool &bNeg )
{
// Sniff the header
sal_Int16 nDicVersion = DIC_VERSION_DONTKNOW;
diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx
index 10beccdf7043..8050d8cdf1e6 100644
--- a/linguistic/source/dicimp.hxx
+++ b/linguistic/source/dicimp.hxx
@@ -34,7 +34,7 @@
#define DIC_MAX_ENTRIES 30000
-sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, LanguageType &nLng, bool &bNeg );
+sal_Int16 ReadDicVersion( SvStreamPtr const &rpStream, LanguageType &nLng, bool &bNeg );
class DictionaryNeo :
public ::cppu::WeakImplHelper
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index 2f729de770e0..bbedc2962618 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -58,7 +58,7 @@ static const struct
static void lcl_AddAsPropertyChangeListener(
const Reference< XPropertyChangeListener >& xListener,
- Reference< XLinguProperties > &rPropSet )
+ Reference< XLinguProperties > const &rPropSet )
{
if (xListener.is() && rPropSet.is())
{
@@ -73,7 +73,7 @@ static void lcl_AddAsPropertyChangeListener(
static void lcl_RemoveAsPropertyChangeListener(
const Reference< XPropertyChangeListener >& xListener,
- Reference< XLinguProperties > &rPropSet )
+ Reference< XLinguProperties > const &rPropSet )
{
if (xListener.is() && rPropSet.is())
{
@@ -98,7 +98,7 @@ static bool lcl_IsFlushProperty( sal_Int32 nHandle )
}
-void FlushListener::SetDicList( Reference<XSearchableDictionaryList> &rDL )
+void FlushListener::SetDicList( Reference<XSearchableDictionaryList> const &rDL )
{
MutexGuard aGuard( GetLinguMutex() );
@@ -114,7 +114,7 @@ void FlushListener::SetDicList( Reference<XSearchableDictionaryList> &rDL )
}
-void FlushListener::SetPropSet( Reference< XLinguProperties > &rPS )
+void FlushListener::SetPropSet( Reference< XLinguProperties > const &rPS )
{
MutexGuard aGuard( GetLinguMutex() );
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)
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index 5958d5980c60..855c9a778a50 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -847,7 +847,7 @@ void SpellCheckerDispatcher::setCharClass(const LanguageTag& rLanguageTag)
}
-OUString SAL_CALL SpellCheckerDispatcher::makeLowerCase(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL SpellCheckerDispatcher::makeLowerCase(const OUString& aTerm, CharClass const * pCC)
{
if (pCC)
return pCC->lowercase(aTerm);
diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx
index 2eaf40da5e83..17048ec4508c 100644
--- a/linguistic/source/spelldsp.hxx
+++ b/linguistic/source/spelldsp.hxx
@@ -113,7 +113,7 @@ public:
private:
void setCharClass(const LanguageTag& rLanguageTag);
- static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
+ static OUString SAL_CALL makeLowerCase(const OUString&, CharClass const *);
};
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx
index 3c2c3f5bc4cd..cbb95eb1bda1 100644
--- a/linguistic/source/spelldta.cxx
+++ b/linguistic/source/spelldta.cxx
@@ -60,7 +60,7 @@ bool SeqHasEntry(
void SearchSimilarText( const OUString &rText, LanguageType nLanguage,
- Reference< XSearchableDictionaryList > &xDicList,
+ Reference< XSearchableDictionaryList > const &xDicList,
std::vector< OUString > & rDicListProps )
{
if (!xDicList.is())
@@ -106,7 +106,7 @@ void SearchSimilarText( const OUString &rText, LanguageType nLanguage,
void SeqRemoveNegEntries( std::vector< OUString > &rSeq,
- Reference< XSearchableDictionaryList > &rxDicList,
+ Reference< XSearchableDictionaryList > const &rxDicList,
LanguageType nLanguage )
{
bool bSthRemoved = false;