(Menu widgets) DO away with == NULL/!= NULL checks

This commit is contained in:
twinaphex 2019-08-15 15:17:01 +02:00
parent 57df6dda82
commit 17957e0816

View File

@ -834,7 +834,7 @@ void menu_widgets_iterate(unsigned width, unsigned height)
}
/* Start expiration timer if not associated to a task */
if (msg_widget->task_ptr == NULL)
if (!msg_widget->task_ptr)
{
menu_widgets_start_msg_expiration_timer(msg_widget, MSG_QUEUE_ANIMATION_DURATION*2 + msg_widget->duration);
}
@ -858,7 +858,7 @@ void menu_widgets_iterate(unsigned width, unsigned height)
if (!msg)
continue;
if (msg->task_ptr != NULL && (msg->task_finished || msg->task_cancelled))
if (msg->task_ptr && (msg->task_finished || msg->task_cancelled))
menu_widgets_start_msg_expiration_timer(msg, TASK_FINISHED_DURATION);
if (msg->expired && !widgets_moving)