Fixed compiler warnings
[AXE.git] / src / button.h
index 25d02c8..61f80cb 100644 (file)
@@ -54,7 +54,7 @@ class button : public frame
 
 public:
 
-   button(window &par, int x, int y,char *label) : frame(par, x, y, label)
+   button(window &par, int x, int y, const char label[]) : frame(par, x, y, label)
    {
       SelectInput(ButtonReleaseMask|ButtonPressMask, 1);
    }
@@ -77,7 +77,7 @@ class touch_button : public button
 
 public:
 
-   touch_button(window &par, int x, int y, char *label)
+   touch_button(window &par, int x, int y, const char label[])
           : button(par, x, y, label)
    {
    }
@@ -95,7 +95,7 @@ class toggle_button : public touch_button
 
 public:
 
-   toggle_button(window &par, int x, int y, char *label)
+   toggle_button(window &par, int x, int y, const char label[])
           : touch_button(par, x, y, label)
    {
       state = State_Off;
@@ -112,7 +112,7 @@ class command_button : public button
 
 public:
 
-   command_button(window &par, int x, int y, char *label, int cc = 0)
+   command_button(window &par, int x, int y, const char label[], int cc = 0)
                   : button(par, x, y, label)
    {
       command_code = cc;