Skip to content

Commit 946d1b8

Browse files
committed
const char * for literal strings
1 parent 9495667 commit 946d1b8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

TAO/utils/wxNamingViewer/wxNamingViewer.wxr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static char *bindObject = "dialog(name = 'bindObject',\
1+
static const char *bindObject = "dialog(name = 'bindObject',\
22
style = 'wxRAISED_BORDER | wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU',\
33
title = 'Bind Object/Context',\
44
id = 133,\
@@ -26,7 +26,7 @@ static char *bindObject = "dialog(name = 'bindObject',\
2626
control = [1018, wxButton, 'View IOR', '0', 'viewIORButton', 222, 26, 50, 12, '',\
2727
[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']]).";
2828

29-
static char *addNameServer = "dialog(name = 'addNameServer',\
29+
static const char *addNameServer = "dialog(name = 'addNameServer',\
3030
style = 'wxRAISED_BORDER | wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU',\
3131
title = 'Add Name Server',\
3232
id = 136,\
@@ -48,7 +48,7 @@ static char *addNameServer = "dialog(name = 'addNameServer',\
4848
control = [5105, wxStaticText, 'IOR:', '0', 'statictext7', 7, 30, 24, 6, '',\
4949
[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']]).";
5050

51-
static char *bindNewContext = "dialog(name = 'bindNewContext',\
51+
static const char *bindNewContext = "dialog(name = 'bindNewContext',\
5252
style = 'wxRAISED_BORDER | wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU',\
5353
title = 'Bind New Context',\
5454
id = 134,\
@@ -70,7 +70,7 @@ static char *bindNewContext = "dialog(name = 'bindNewContext',\
7070
control = [5105, wxStaticText, 'Kind:', '0', 'statictext7', 7, 34, 15, 6, '',\
7171
[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']]).";
7272

73-
static char *viewIOR = "dialog(name = 'viewIOR',\
73+
static const char *viewIOR = "dialog(name = 'viewIOR',\
7474
style = 'wxRAISED_BORDER | wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU',\
7575
title = 'View IOR',\
7676
id = 102,\
@@ -92,7 +92,7 @@ static char *viewIOR = "dialog(name = 'viewIOR',\
9292
control = [1007, wxTextCtrl, '', 'wxTE_READONLY', 'typeIDText', 57, 27, 274, 12, '',\
9393
[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']]).";
9494

95-
static char *selectNS = "dialog(name = 'selectNS',\
95+
static const char *selectNS = "dialog(name = 'selectNS',\
9696
style = 'wxRAISED_BORDER | wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU',\
9797
title = 'Select Naming Service',\
9898
id = 135,\

0 commit comments

Comments
 (0)