From c706d3c101cc3e159fea95c54a044d26ba9b3649 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 21 Aug 2014 12:16:40 +0000 Subject: [PATCH] Constify the pointers in some XPM images. STR #3108 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tree_Prefs.cxx | 4 ++-- src/fl_cursor_help.xpm | 2 +- src/fl_cursor_nesw.xpm | 2 +- src/fl_cursor_none.xpm | 2 +- src/fl_cursor_nwse.xpm | 2 +- src/fl_cursor_wait.xpm | 2 +- src/tile.xpm | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Fl_Tree_Prefs.cxx b/src/Fl_Tree_Prefs.cxx index 3fc9c4355..fc8ba08f7 100644 --- a/src/Fl_Tree_Prefs.cxx +++ b/src/Fl_Tree_Prefs.cxx @@ -28,7 +28,7 @@ // INTERNAL: BUILT IN OPEN/STOW XPMS // These can be replaced via prefs.openicon()/closeicon() // -static const char *L_open_xpm[] = { +static const char * const L_open_xpm[] = { #ifdef __APPLE__ "11 11 2 1", ". c None", @@ -64,7 +64,7 @@ static const char *L_open_xpm[] = { }; static Fl_Pixmap L_openpixmap(L_open_xpm); -static const char *L_close_xpm[] = { +static const char * const L_close_xpm[] = { #ifdef __APPLE__ "11 11 2 1", ". c None", diff --git a/src/fl_cursor_help.xpm b/src/fl_cursor_help.xpm index 972c82fb6..2c219833c 100644 --- a/src/fl_cursor_help.xpm +++ b/src/fl_cursor_help.xpm @@ -1,5 +1,5 @@ /* XPM */ -static const char * fl_cursor_help_xpm[] = { +static const char * const fl_cursor_help_xpm[] = { "16 27 9 1", " c None", ". c #FFFFFF", diff --git a/src/fl_cursor_nesw.xpm b/src/fl_cursor_nesw.xpm index 5a7113a9e..4fbdcc9fa 100644 --- a/src/fl_cursor_nesw.xpm +++ b/src/fl_cursor_nesw.xpm @@ -1,5 +1,5 @@ /* XPM */ -static const char * fl_cursor_nesw_xpm[] = { +static const char * const fl_cursor_nesw_xpm[] = { "15 15 28 1", " c None", ". c #FFFFFF", diff --git a/src/fl_cursor_none.xpm b/src/fl_cursor_none.xpm index 054e461d2..fb53c6da8 100644 --- a/src/fl_cursor_none.xpm +++ b/src/fl_cursor_none.xpm @@ -1,5 +1,5 @@ /* XPM */ -static const char * fl_cursor_none_xpm[] = { +static const char * const fl_cursor_none_xpm[] = { "15 15 1 1", " c None", " ", diff --git a/src/fl_cursor_nwse.xpm b/src/fl_cursor_nwse.xpm index d495eb4ff..f5e4ebb1f 100644 --- a/src/fl_cursor_nwse.xpm +++ b/src/fl_cursor_nwse.xpm @@ -1,5 +1,5 @@ /* XPM */ -static const char * fl_cursor_nwse_xpm[] = { +static const char * const fl_cursor_nwse_xpm[] = { "15 15 28 1", " c None", ". c #FFFFFF", diff --git a/src/fl_cursor_wait.xpm b/src/fl_cursor_wait.xpm index 3aa6df631..da027844d 100644 --- a/src/fl_cursor_wait.xpm +++ b/src/fl_cursor_wait.xpm @@ -1,5 +1,5 @@ /* XPM */ -static const char *fl_cursor_wait_xpm[] = { +static const char * const fl_cursor_wait_xpm[] = { /* width height ncolors chars_per_pixel */ "13 18 3 1", /* colors */ diff --git a/src/tile.xpm b/src/tile.xpm index 872e0f70c..1fa410c74 100644 --- a/src/tile.xpm +++ b/src/tile.xpm @@ -4,7 +4,7 @@ static char tile_cmap[3][32] = { "o c #EFEFEF", ". c #E8E8E8" }; -static const char * tile_xpm[] = { +static const char * const tile_xpm[] = { "64 64 3 1", tile_cmap[0], tile_cmap[1],