diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-09 16:27:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-22 12:47:37 +0200 |
commit | 76dd28afc9c0eb632a5dd20eb51704ee0bbc4b58 (patch) | |
tree | 82c51d09721476a1a6fcbf1e4cd4af8189ac55a2 /i18npool | |
parent | 78490b45c771a4c9632b324922f2c8e83f06153b (diff) |
loplugin:staticvar in various
looks for variables that can be declared const and static i.e. they can
be stored in the read-only linker segment and shared between different
processes
Change-Id: I8ddc6e5fa0f6b10d80c75d5952df8ddd311cf892
Reviewed-on: https://gerrit.libreoffice.org/61591
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/inputchecker/inputsequencechecker.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx index 15426db1bc57..17ee82810af3 100644 --- a/i18npool/source/inputchecker/inputsequencechecker.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker.cxx @@ -74,7 +74,7 @@ InputSequenceCheckerImpl::correctInputSequence(OUString& Text, sal_Int32 nStartP return nStartPos; } -static ScriptTypeList typeList[] = { +static ScriptTypeList const typeList[] = { //{ UnicodeScript_kHebrew, UnicodeScript_kHebrew }, // 10, //{ UnicodeScript_kArabic, UnicodeScript_kArabic }, // 11, { UnicodeScript_kDevanagari, UnicodeScript_kDevanagari, sal_Int16(UnicodeScript_kDevanagari) }, // 14, diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 900160f2971c..16bcfd3f96b2 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -54,7 +54,7 @@ static struct TMlist { TransliterationModules tm; TransliterationModulesNew tmn; const sal_Char *implName; -} TMlist[] = { // Modules ModulesNew +} const TMlist[] = { // Modules ModulesNew TmItem1 (IGNORE_CASE), // 0. (1<<8 256) (7) TmItem1 (IGNORE_WIDTH), // 1. (1<<9 512) (8) TmItem1 (IGNORE_KANA), // 2. (1<<10 1024) (9) |