diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 13:04:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-22 07:55:32 +0200 |
commit | 7ea01578eed8459678369d0256de016930b3af40 (patch) | |
tree | 2b7f8c57f4693284ad7aad806b73b1994ac27838 /svl | |
parent | 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4 (diff) |
loplugin:staticvar in soltools..svx
Change-Id: Ie9f36eb0e00aaee34a27f136ed903f8f87e52dcc
Reviewed-on: https://gerrit.libreoffice.org/61916
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 40afffa3e09a..b41ed0a519a9 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1098,11 +1098,11 @@ void Test::testIsNumberFormat() LanguageType eLang = LANGUAGE_ENGLISH_US; SvNumberFormatter aFormatter(m_xContext, eLang); - struct NumberFormatData + static struct NumberFormatData { const char* pFormat; bool const bIsNumber; - } aTests[] = { + } const aTests[] = { { "20.3", true }, { "2", true }, { "test", false }, diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index a817d8d191c1..c7d01aae0375 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -549,7 +549,7 @@ OUString SvNumberformat::ImpObtainCalendarAndNumerals( OUStringBuffer& rString, break; } /** Reference language for each numeral ID */ - const LanguageType aNumeralIDtoLanguage []= + static const LanguageType aNumeralIDtoLanguage []= { LANGUAGE_DONTKNOW, // 0x00 LANGUAGE_ENGLISH_US, // 0x01 |