]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - c++/demo.cc
ncurses 5.4
[ncurses.git] / c++ / demo.cc
index 047e4b2473db1f64e08b6db295179da3b65f5715..f3fe3e46f7ef4fe75da1937a712a42de434e8060 100644 (file)
@@ -5,9 +5,8 @@
  *
  *   Demo code for NCursesMenu and NCursesForm written by
  *   Juergen Pfeifer
- *   Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
  *
- * $Id: demo.cc,v 1.22 2002/07/06 15:47:52 juergen Exp $
+ * $Id: demo.cc,v 1.24 2004/01/15 00:21:27 tom Exp $
  */
 
 #include "cursesapp.h"
@@ -205,7 +204,7 @@ private:
   Integer_Field *ift;
   Enumeration_Field *eft;
 
-  static char *weekdays[];
+  static const char *weekdays[];
 
 public:
   TestForm() : NCursesForm(13,51,(lines()-15)/2,(cols()-53)/2) {
@@ -247,9 +246,9 @@ public:
   }
 };
 
-char* TestForm::weekdays[] = {
+const char* TestForm::weekdays[] = {
     "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
-    "Friday", "Saturday", (char *)0 };
+    "Friday", "Saturday", (const char *)0 };
 //
 // -------------------------------------------------------------------------
 //