From ee9e027de092b91e97e4d280f26bd8c73bae602a Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 1 Aug 2017 00:03:59 +0900 Subject: svtools: Mark arrays as constant Change-Id: I46df79ababe4ed0f22f015e41f9f855c12776a8d Reviewed-on: https://gerrit.libreoffice.org/40597 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svtools/source/config/printoptions.cxx | 2 +- svtools/source/config/slidesorterbaropt.cxx | 2 +- svtools/source/config/toolpanelopt.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/config') 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 -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, -- cgit