[Libreoffice-commits] core.git: sd/source svx/source

Takeshi Abe tabe at fixedpoint.jp
Mon Dec 12 04:59:14 UTC 2016


 sd/source/ui/func/fuarea.cxx             |    2 +-
 sd/source/ui/func/fuchar.cxx             |    2 +-
 sd/source/ui/func/fuline.cxx             |    2 +-
 sd/source/ui/func/fuoltext.cxx           |    2 +-
 sd/source/ui/func/fuparagr.cxx           |    2 +-
 sd/source/ui/func/fusearch.cxx           |    2 +-
 sd/source/ui/func/futext.cxx             |    2 +-
 sd/source/ui/func/fuzoom.cxx             |    2 +-
 sd/source/ui/inc/fuzoom.hxx              |    2 +-
 sd/source/ui/sidebar/SlideBackground.cxx |    2 +-
 svx/source/toolbars/extrusionbar.cxx     |    2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 5e79d60fa9e48c343dfebbed360a420b9e0f4e2d
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Dec 11 15:15:49 2016 +0900

    Mark as const
    
    Change-Id: Ie4b7d45d26fbd839f9afcd11a7ba4bff80ed54e8
    Reviewed-on: https://gerrit.libreoffice.org/31854
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/sd/source/ui/func/fuarea.cxx b/sd/source/ui/func/fuarea.cxx
index ac4fff6..1b83544 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 f5601b3..91dce94 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 5f643ef..16a1200 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 88507be..b342d50 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 9daab0a..9d0f39d 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 48aca71..b49ed70 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 200c001..17aa214 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 f0e7fa8..1cac382 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 fe4dbaa..0286224 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 3957fba..f9548c1 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,
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx
index 2d41d8f..9a60fa4 100644
--- a/svx/source/toolbars/extrusionbar.cxx
+++ b/svx/source/toolbars/extrusionbar.cxx
@@ -587,7 +587,7 @@ void ExtrusionBar::execute( SdrView* pSdrView, SfxRequest& rReq, SfxBindings& rB
 
     if( nSID == SID_EXTRUSION_TOOGLE )
     {
-            static sal_uInt16 SidArray[] = {
+            static const sal_uInt16 SidArray[] = {
                 SID_EXTRUSION_TILT_DOWN,
                 SID_EXTRUSION_TILT_UP,
                 SID_EXTRUSION_TILT_LEFT,


More information about the Libreoffice-commits mailing list