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 /toolkit/source/helper | |
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 'toolkit/source/helper')
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index d7dfe76e162e..6e466468e2f1 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -360,10 +360,10 @@ namespace { static struct _unit_table { - FieldUnit const eFieldUnit; - sal_Int16 const nMeasurementUnit; - sal_Int16 const nFieldToMeasureFactor; - } aUnits[] = { + FieldUnit eFieldUnit; + sal_Int16 nMeasurementUnit; + sal_Int16 nFieldToMeasureFactor; + } const aUnits[] = { { FUNIT_NONE, -1 , -1}, { FUNIT_MM, MeasureUnit::MM, 1 }, // must precede MM_10TH { FUNIT_MM, MeasureUnit::MM_10TH, 10 }, |