summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-18 17:01:34 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-18 17:01:34 +0200
commit975cd3b4fd1dc6cad320f62bfbf25b38d60e9181 (patch)
treecb83ae970c1bb120d667a880060b96b19de02008 /test
parent89309ebbf2c48f2242bba1c635c767cc450e054c (diff)
Remove unnecessary casts from glut demo programs
These casts are no longer useful since commit 5cd9f6fb8058f92d: "STR #3323: glutAddMenuEntry now has a const label argument"
Diffstat (limited to 'test')
-rw-r--r--test/fractals.cxx26
-rw-r--r--test/glpuzzle.cxx10
2 files changed, 18 insertions, 18 deletions
diff --git a/test/fractals.cxx b/test/fractals.cxx
index bbdde0569..d9cf9905f 100644
--- a/test/fractals.cxx
+++ b/test/fractals.cxx
@@ -724,28 +724,28 @@ void MenuInit(void)
int submenu3, submenu2, submenu1;
submenu1 = glutCreateMenu(setlevel);
- glutAddMenuEntry((char *)"0", 0); glutAddMenuEntry((char *)"1", 1);
- glutAddMenuEntry((char *)"2", 2); glutAddMenuEntry((char *)"3", 3);
- glutAddMenuEntry((char *)"4", 4); glutAddMenuEntry((char *)"5", 5);
- glutAddMenuEntry((char *)"6", 6); glutAddMenuEntry((char *)"7", 7);
- glutAddMenuEntry((char *)"8", 8);
+ glutAddMenuEntry("0", 0); glutAddMenuEntry("1", 1);
+ glutAddMenuEntry("2", 2); glutAddMenuEntry("3", 3);
+ glutAddMenuEntry("4", 4); glutAddMenuEntry("5", 5);
+ glutAddMenuEntry("6", 6); glutAddMenuEntry("7", 7);
+ glutAddMenuEntry("8", 8);
submenu2 = glutCreateMenu(choosefract);
- glutAddMenuEntry((char *)"Moutain", MOUNTAIN);
- glutAddMenuEntry((char *)"Tree", TREE);
- glutAddMenuEntry((char *)"Island", ISLAND);
+ glutAddMenuEntry("Moutain", MOUNTAIN);
+ glutAddMenuEntry("Tree", TREE);
+ glutAddMenuEntry("Island", ISLAND);
submenu3 = glutCreateMenu(agvSwitchMoveMode);
- glutAddMenuEntry((char *)"Flying", FLYING);
- glutAddMenuEntry((char *)"Polar", POLAR);
+ glutAddMenuEntry("Flying", FLYING);
+ glutAddMenuEntry("Polar", POLAR);
glutCreateMenu(handlemenu);
glutAddSubMenu((char *)"Level", submenu1);
glutAddSubMenu((char *)"Fractal", submenu2);
glutAddSubMenu((char *)"Movement", submenu3);
- glutAddMenuEntry((char *)"New Fractal", MENU_RAND);
- glutAddMenuEntry((char *)"Toggle Axes", MENU_AXES);
- glutAddMenuEntry((char *)"Quit", MENU_QUIT);
+ glutAddMenuEntry("New Fractal", MENU_RAND);
+ glutAddMenuEntry("Toggle Axes", MENU_AXES);
+ glutAddMenuEntry("Quit", MENU_QUIT);
glutAttachMenu(GLUT_RIGHT_BUTTON);
}
diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx
index 2e8a307d5..f6d1c529e 100644
--- a/test/glpuzzle.cxx
+++ b/test/glpuzzle.cxx
@@ -4,7 +4,7 @@
// This is a GLUT demo program to demonstrate fltk's GLUT emulation.
// Search for "fltk" to find all the changes
//
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -1485,10 +1485,10 @@ main(int argc, char **argv)
glutMouseFunc(mouse);
glutVisibilityFunc(visibility);
glutCreateMenu(menu);
- glutAddMenuEntry((char *)"Normal pos", 1);
- glutAddMenuEntry((char *)"Solve", 2);
- glutAddMenuEntry((char *)"Reset", 3);
- glutAddMenuEntry((char *)"Quit", 4);
+ glutAddMenuEntry("Normal pos", 1);
+ glutAddMenuEntry("Solve", 2);
+ glutAddMenuEntry("Reset", 3);
+ glutAddMenuEntry("Quit", 4);
glutAttachMenu(GLUT_RIGHT_BUTTON);
glutMainLoop();
return 0; /* ANSI C requires main to return int. */