X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2Fdemo.cc;h=f3fe3e46f7ef4fe75da1937a712a42de434e8060;hp=047e4b2473db1f64e08b6db295179da3b65f5715;hb=refs%2Ftags%2Fv5.4;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/c++/demo.cc b/c++/demo.cc index 047e4b24..f3fe3e46 100644 --- a/c++/demo.cc +++ b/c++/demo.cc @@ -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 }; // // ------------------------------------------------------------------------- //