summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linguistic/misc.hxx10
-rw-r--r--include/linguistic/spelldta.hxx4
-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
10 files changed, 25 insertions, 25 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 );
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;