|
|
commit 80a22e97e8f61c4fb3cfd13dd4ee81c3a46c5884
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Feb 3 19:48:51 2022 +0100
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Feb 3 19:56:47 2022 +0100
Fl_Timeout: Remove compiler warning [-Wclass-memaccess]
Also: fix doxygen warning
src/Fl_Timeout.cxx | 2 +-
src/Fl_Timeout.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git src/Fl_Timeout.cxx src/Fl_Timeout.cxx
index fed9fba..1977197 100644
--- src/Fl_Timeout.cxx
+++ src/Fl_Timeout.cxx
@@ -319,7 +319,7 @@ Fl_Timeout *Fl_Timeout::get(double time, Fl_Timeout_Handler cb, void *data) {
#endif
}
- memset(t, 0, sizeof(*t));
+ t->next = 0;
t->delay(time);
t->callback = cb;
t->data = data;
diff --git src/Fl_Timeout.h src/Fl_Timeout.h
index de41106..610f000 100644
--- src/Fl_Timeout.h
+++ src/Fl_Timeout.h
@@ -146,8 +146,6 @@ protected:
used like a stack (last in, first out).
\see Fl_Timeout::push() Member function (method)
- \see Fl_Timeout *Fl_Timeout::pop() Static function
- \see Fl_Timeout *Fl_Timeout::current() TStatic function
*/
static Fl_Timeout *current_timeout; // list of "current" timeouts
[ Direct Link to Message ] | |
|
| |