diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-19 14:44:16 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-19 14:44:16 +0100 |
| commit | 1ccafa83b2c783fdfe088af1ddf9a853e071cf5d (patch) | |
| tree | 7b4c292888807b02448ff5341208821e5c2a2eed /test/ask.cxx | |
| parent | 4b07ab391ac77e2996e61646a258064bb1cadfeb (diff) | |
Remove obsolete build option 'FLTK_OPTION_STD'
This option is no longer needed since FLTK 1.5 always requires C++11.
Diffstat (limited to 'test/ask.cxx')
| -rw-r--r-- | test/ask.cxx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/test/ask.cxx b/test/ask.cxx index 527b43dfa..93483b757 100644 --- a/test/ask.cxx +++ b/test/ask.cxx @@ -4,7 +4,7 @@ // This also demonstrates how to trap attempts by the user to // close the last window by overriding Fl::exit // -// Copyright 1998-2024 by Bill Spitzak and others. +// Copyright 1998-2025 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 @@ -35,7 +35,6 @@ void rename_button(Fl_Widget *o, void *v) { int what = fl_int(v); int ret = 0; -#if (FLTK_USE_STD) std::string input; if (what == 0) { fl_message_icon_label("§"); @@ -48,22 +47,6 @@ void rename_button(Fl_Widget *o, void *v) { o->copy_label(input.c_str()); o->redraw(); } -#else - const char *input; - if (what == 0) { - fl_message_icon_label("§"); - input = fl_input("Input (no size limit, use ctrl/j for newline):", o->label()); - if (!input) ret = 1; - } else { - fl_message_icon_label("€"); - input = fl_password(20, "Enter password (max. 20 characters):", o->label()); - if (!input) ret = 1; - } - if (ret == 0) { - o->copy_label(input); - o->redraw(); - } -#endif // FLTK_USE_STD } void window_callback(Fl_Widget *win, void *) { |
