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(-)
New commits: commit ee9e027de092b91e97e4d280f26bd8c73bae602a Author: Takeshi Abe <t...@fixedpoint.jp> Date: Tue Aug 1 00:03:59 2017 +0900 svtools: Mark arrays as constant Change-Id: I46df79ababe4ed0f22f015e41f9f855c12776a8d Reviewed-on: https://gerrit.libreoffice.org/40597 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> 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, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits