summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-12-11 15:15:49 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-12-12 04:58:41 +0000
commit5e79d60fa9e48c343dfebbed360a420b9e0f4e2d (patch)
tree4d6b8c5698362c45fa9f356f04f4f05306671143 /sd
parent53dbc419b2e886b345a3512cf11e035ff2b7651b (diff)
Mark as const
Change-Id: Ie4b7d45d26fbd839f9afcd11a7ba4bff80ed54e8 Reviewed-on: https://gerrit.libreoffice.org/31854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuarea.cxx2
-rw-r--r--sd/source/ui/func/fuchar.cxx2
-rw-r--r--sd/source/ui/func/fuline.cxx2
-rw-r--r--sd/source/ui/func/fuoltext.cxx2
-rw-r--r--sd/source/ui/func/fuparagr.cxx2
-rw-r--r--sd/source/ui/func/fusearch.cxx2
-rw-r--r--sd/source/ui/func/futext.cxx2
-rw-r--r--sd/source/ui/func/fuzoom.cxx2
-rw-r--r--sd/source/ui/inc/fuzoom.hxx2
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx2
10 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/func/fuarea.cxx b/sd/source/ui/func/fuarea.cxx
index ac4fff67a62d..1b83544ac9ca 100644
--- a/sd/source/ui/func/fuarea.cxx
+++ b/sd/source/ui/func/fuarea.cxx
@@ -70,7 +70,7 @@ void FuArea::DoExecute( SfxRequest& rReq )
}
// attributes changed, update Listboxes in Objectbars
- static sal_uInt16 SidArray[] = {
+ static const sal_uInt16 SidArray[] = {
SID_ATTR_FILL_STYLE,
SID_ATTR_FILL_COLOR,
SID_ATTR_FILL_GRADIENT,
diff --git a/sd/source/ui/func/fuchar.cxx b/sd/source/ui/func/fuchar.cxx
index f5601b3f2cd3..91dce945ed7d 100644
--- a/sd/source/ui/func/fuchar.cxx
+++ b/sd/source/ui/func/fuchar.cxx
@@ -134,7 +134,7 @@ void FuChar::DoExecute( SfxRequest& rReq )
mpView->SetAttributes(*pArgs);
// invalidate the Slots which are in DrTxtObjBar
- static sal_uInt16 SidArray[] = {
+ static const sal_uInt16 SidArray[] = {
SID_ATTR_CHAR_FONT,
SID_ATTR_CHAR_POSTURE,
SID_ATTR_CHAR_WEIGHT,
diff --git a/sd/source/ui/func/fuline.cxx b/sd/source/ui/func/fuline.cxx
index 5f643ef7b774..16a1200c9747 100644
--- a/sd/source/ui/func/fuline.cxx
+++ b/sd/source/ui/func/fuline.cxx
@@ -82,7 +82,7 @@ void FuLine::DoExecute( SfxRequest& rReq )
}
// some attributes are changed, we have to update the listboxes in the objectbars
- static sal_uInt16 SidArray[] = {
+ static const sal_uInt16 SidArray[] = {
SID_ATTR_LINE_STYLE, // ( SID_SVX_START + 169 )
SID_ATTR_LINE_DASH, // ( SID_SVX_START + 170 )
SID_ATTR_LINE_WIDTH, // ( SID_SVX_START + 171 )
diff --git a/sd/source/ui/func/fuoltext.cxx b/sd/source/ui/func/fuoltext.cxx
index 88507becb2a8..b342d506f4ce 100644
--- a/sd/source/ui/func/fuoltext.cxx
+++ b/sd/source/ui/func/fuoltext.cxx
@@ -41,7 +41,7 @@
namespace sd {
-static sal_uInt16 SidArray[] = {
+static const sal_uInt16 SidArray[] = {
SID_STYLE_FAMILY2,
SID_STYLE_FAMILY3,
SID_STYLE_FAMILY5,
diff --git a/sd/source/ui/func/fuparagr.cxx b/sd/source/ui/func/fuparagr.cxx
index 9daab0a6077e..9d0f39d8fff8 100644
--- a/sd/source/ui/func/fuparagr.cxx
+++ b/sd/source/ui/func/fuparagr.cxx
@@ -132,7 +132,7 @@ void FuParagraph::DoExecute( SfxRequest& rReq )
}
// invalidate slots
- static sal_uInt16 SidArray[] = {
+ static const sal_uInt16 SidArray[] = {
SID_ATTR_TABSTOP,
SID_ATTR_PARA_ADJUST_LEFT,
SID_ATTR_PARA_ADJUST_RIGHT,
diff --git a/sd/source/ui/func/fusearch.cxx b/sd/source/ui/func/fusearch.cxx
index 48aca71445f1..b49ed70d5692 100644
--- a/sd/source/ui/func/fusearch.cxx
+++ b/sd/source/ui/func/fusearch.cxx
@@ -40,7 +40,7 @@ class SfxRequest;
namespace sd {
-static sal_uInt16 SidArraySpell[] = {
+static const sal_uInt16 SidArraySpell[] = {
SID_DRAWINGMODE,
SID_OUTLINE_MODE,
SID_SLIDE_SORTER_MODE,
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
index 200c001daf07..17aa2141e8bf 100644
--- a/sd/source/ui/func/futext.cxx
+++ b/sd/source/ui/func/futext.cxx
@@ -76,7 +76,7 @@ using namespace ::com::sun::star::linguistic2;
namespace sd {
-static sal_uInt16 SidArray[] = {
+static const sal_uInt16 SidArray[] = {
SID_STYLE_FAMILY2, // 5542
SID_STYLE_FAMILY5, // 5545
SID_REDO, // 5700
diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx
index f0e7fa8a1de6..1cac3823f11c 100644
--- a/sd/source/ui/func/fuzoom.cxx
+++ b/sd/source/ui/func/fuzoom.cxx
@@ -34,7 +34,7 @@
namespace sd {
-sal_uInt16 SidArrayZoom[] = {
+const sal_uInt16 SidArrayZoom[] = {
SID_ATTR_ZOOM,
SID_ZOOM_OUT,
SID_ZOOM_IN,
diff --git a/sd/source/ui/inc/fuzoom.hxx b/sd/source/ui/inc/fuzoom.hxx
index fe4dbaae5729..02862246de45 100644
--- a/sd/source/ui/inc/fuzoom.hxx
+++ b/sd/source/ui/inc/fuzoom.hxx
@@ -25,7 +25,7 @@
namespace sd {
-extern sal_uInt16 SidArrayZoom[];
+extern const sal_uInt16 SidArrayZoom[];
class FuZoom
: public FuPoor
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 3957fbafbd0d..f9548c1f84fb 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -383,7 +383,7 @@ IMPL_LINK(SlideBackground, EventMultiplexerListener,
break;
case EventMultiplexerEventId::CurrentPageChanged:
{
- static sal_uInt16 SidArray[] = {
+ static const sal_uInt16 SidArray[] = {
SID_ATTR_PAGE_COLOR,
SID_ATTR_PAGE_GRADIENT,
SID_ATTR_PAGE_HATCH,