diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-08-17 08:43:50 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-08-17 08:43:50 +0000 |
| commit | 538a1c62eec21c06b2e6eee5aa0c08fdcdcc63f9 (patch) | |
| tree | b900bcd53ebd9f56cdf36c87840a9fed71d3112c | |
| parent | 26be719a4a1d385d8575d24089aa0afc79c6dc1b (diff) | |
Fl_Tabs::value() is now const as described in the documentation (STR #1379)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | FL/Fl_Tabs.H | 2 | ||||
| -rw-r--r-- | src/Fl_Tabs.cxx | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.8 + - Fl_Tabs::value() is now "const" as described in the + documentation (STR #1379) - FLUID now only writes definitions of "o" and "w" variables as needed, reducing the number of "variable is shadowed" warnings from GCC. diff --git a/FL/Fl_Tabs.H b/FL/Fl_Tabs.H index 3f88c2a63..956ff7aef 100644 --- a/FL/Fl_Tabs.H +++ b/FL/Fl_Tabs.H @@ -42,7 +42,7 @@ protected: public: int handle(int); - Fl_Widget *value(); + Fl_Widget *value() const; int value(Fl_Widget *); Fl_Widget *push() const {return push_;} int push(Fl_Widget *); diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 02bac39a1..787765ab8 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -231,7 +231,7 @@ int Fl_Tabs::push(Fl_Widget *o) { // are visible) and this also hides any other children. // This allows the tabs to be deleted, moved to other groups, and // show()/hide() called without it screwing up. -Fl_Widget* Fl_Tabs::value() { +Fl_Widget* Fl_Tabs::value() const { Fl_Widget* v = 0; Fl_Widget*const* a = array(); for (int i=children(); i--;) { |
