Simplify code

This commit is contained in:
Chocobo1 2015-03-14 01:35:06 +08:00
commit 26cb71458d

View file

@ -105,10 +105,7 @@ void QAlertDispatcher::dispatch(QSharedPointer<Tag> tag,
return; return;
bool was_empty = that->alerts.empty(); bool was_empty = that->alerts.empty();
that->alerts.push_back(alert_ptr.release());
that->alerts.push_back(alert_ptr.get());
alert_ptr.release();
if (was_empty) if (was_empty)
that->alerts_condvar.wakeAll(); that->alerts_condvar.wakeAll();