summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-08-01 00:03:59 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-31 19:39:32 +0200
commitee9e027de092b91e97e4d280f26bd8c73bae602a (patch)
tree14e4512623a7e499edc572d53f463f7882c40066 /svtools
parent6ea9062d233e153a5df0e7368af4c6a49d955485 (diff)
svtools: Mark arrays as constant
Change-Id: I46df79ababe4ed0f22f015e41f9f855c12776a8d Reviewed-on: https://gerrit.libreoffice.org/40597 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/printoptions.cxx2
-rw-r--r--svtools/source/config/slidesorterbaropt.cxx2
-rw-r--r--svtools/source/config/toolpanelopt.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx
index 05ac6875d4a4..2e3cc7d7642a 100644
--- a/svtools/source/config/printoptions.cxx
+++ b/svtools/source/config/printoptions.cxx
@@ -36,7 +36,7 @@
#include <sal/macros.h>
-static sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 };
+static const sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 };
#define DPI_COUNT (SAL_N_ELEMENTS(aDPIArray))
diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx
index 3e496a0b89cb..7c77d2bae968 100644
--- a/svtools/source/config/slidesorterbaropt.cxx
+++ b/svtools/source/config/slidesorterbaropt.cxx
@@ -321,7 +321,7 @@ void SvtSlideSorterBarOptions_Impl::ImplCommit()
Sequence< OUString > SvtSlideSorterBarOptions_Impl::GetPropertyNames()
{
// Build list of configuration key names.
- OUString pProperties[] =
+ const OUString pProperties[] =
{
PROPERTYNAME_VISIBLE_IMPRESSVIEW,
PROPERTYNAME_VISIBLE_OUTLINEVIEW,
diff --git a/svtools/source/config/toolpanelopt.cxx b/svtools/source/config/toolpanelopt.cxx
index fac60192acb1..eba249e99a61 100644
--- a/svtools/source/config/toolpanelopt.cxx
+++ b/svtools/source/config/toolpanelopt.cxx
@@ -284,7 +284,7 @@ void SvtToolPanelOptions_Impl::ImplCommit()
Sequence< OUString > SvtToolPanelOptions_Impl::GetPropertyNames()
{
// Build list of configuration key names.
- OUString pProperties[] =
+ const OUString pProperties[] =
{
PROPERTYNAME_VISIBLE_IMPRESSVIEW,
PROPERTYNAME_VISIBLE_OUTLINEVIEW,