summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 09:32:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 12:04:41 +0200
commit07f9223daae92ac11be2382ecd0095e744f5695f (patch)
tree553f162c88e1d30dd7946daf62c0db7acb9a0469 /linguistic
parent6fea13e7a10272922ffdf74b65add10ecf8cec38 (diff)
loplugin:constvars in i18npool..opencl
Change-Id: I82738a18ff116fdc78f07b453c93b1b631632caf Reviewed-on: https://gerrit.libreoffice.org/77775 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx2
-rw-r--r--linguistic/source/dlistimp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index f6a976679641..423923a0ba0a 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -464,7 +464,7 @@ ErrCode DictionaryNeo::saveEntries(const OUString &rURL)
pStream->WriteLine("---");
if (ERRCODE_NONE != (nErr = pStream->GetError()))
return nErr;
- for (Reference<XDictionaryEntry> & aEntrie : aEntries)
+ for (const Reference<XDictionaryEntry> & aEntrie : aEntries)
{
OString aOutStr = formatForSave(aEntrie, eEnc);
pStream->WriteLine (aOutStr);
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index 062e2ad0b017..34eb79294ec2 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -596,7 +596,7 @@ void DicList::CreateDicList()
// look for dictionaries
const OUString aWriteablePath( GetDictionaryWriteablePath() );
std::vector< OUString > aPaths( GetDictionaryPaths() );
- for (OUString & aPath : aPaths)
+ for (const OUString & aPath : aPaths)
{
const bool bIsWriteablePath = (aPath == aWriteablePath);
SearchForDictionaries( aDicList, aPath, bIsWriteablePath );