Fl_Timeout: Remove compiler warning [-Wclass-memaccess]

Also: fix doxygen warning
This commit is contained in:
Albrecht Schlosser 2022-02-03 19:48:51 +01:00
parent 4eaa6dfd0d
commit 80a22e97e8
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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