diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-04-13 19:07:40 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-04-13 19:07:40 +0000 |
| commit | b8a8c98f04c752e69c17f2709c7496489b839611 (patch) | |
| tree | 3eae855f2e104e207ecd36650ad9963a1c5f8ff4 /test/forms.cxx | |
| parent | bb86f132ebc530f9d06d441f7d13675efcef1322 (diff) | |
Eliminate all compiler warnings (string constants, const'ness, hiding of
class members, empty fl_call_main.c)
Update pixmap functions to accept const * const * or * const * pointers.
(confused? :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/forms.cxx')
| -rw-r--r-- | test/forms.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/forms.cxx b/test/forms.cxx index f1c3c5fe0..6fb547d95 100644 --- a/test/forms.cxx +++ b/test/forms.cxx @@ -1,5 +1,5 @@ // -// "$Id: forms.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $" +// "$Id: forms.cxx,v 1.4.2.4 2001/04/13 19:07:40 easysw Exp $" // // Another forms demo for the Fast Light Tool Kit (FLTK). // @@ -34,7 +34,7 @@ static int border = 1; // changed from FL_TRANSIENT for fltk // (this is so the close box and Esc work to close the window) -typedef struct { int val; char *name; } VN_struct; +typedef struct { int val; const char *name; } VN_struct; #define VN(a) {a,#a} // static VN_struct gmode[] = @@ -165,7 +165,7 @@ create_the_forms (void) /*************** Main Routine ***********************/ -char *browserlines[] = { +const char *browserlines[] = { " ", "@C1@c@l@bObjects Demo", " ", "This demo shows you all", "objects that currently", "exist in the Forms Library.", " ", @@ -184,7 +184,7 @@ int main (int argc, char *argv[]) { FL_COLOR c = FL_BLACK; - char **p; + const char **p; VN_struct *vn; fl_initialize(&argc, argv, "FormDemo", 0, 0); @@ -229,5 +229,5 @@ main (int argc, char *argv[]) } // -// End of "$Id: forms.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $". +// End of "$Id: forms.cxx,v 1.4.2.4 2001/04/13 19:07:40 easysw Exp $". // |
