diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-08 19:19:07 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-08 19:19:07 +0000 |
| commit | e8ccc2cf7cdc4b530712e120ba45eb851443cabf (patch) | |
| tree | e5d32adefc4f5eea28229f4c04b69b6964c4d65d /src | |
| parent | 087440e768bfac7259eef200317661b7911b9192 (diff) | |
Fix bonehead typo and const issues with new remove_handler() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index ccffdda02..265503ad3 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.40 2002/07/08 15:14:38 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.41 2002/07/08 19:19:07 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -379,10 +379,10 @@ void Fl::flush() { struct handler_link { int (*handle)(int); - const handler_link *next; + handler_link *next; }; -static const handler_link *handlers = 0; +static handler_link *handlers = 0; void Fl::add_handler(int (*h)(int)) { handler_link *l = new handler_link; @@ -395,7 +395,7 @@ void Fl::remove_handler(int (*h)(int)) { handler_link *l, *p; // Search for the handler in the list... - for (l = handlers, p = 0; l && l->handle != h; p = l; l = l->next); + for (l = handlers, p = 0; l && l->handle != h; p = l, l = l->next); if (l) { // Found it, so remove it from the list... @@ -949,5 +949,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.40 2002/07/08 15:14:38 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.41 2002/07/08 19:19:07 easysw Exp $". // |
