void EventManager::postEvent(Event *event)
{
if (sender() && sender()->thread() != this->thread()) {
- QueuedQuasselEvent *queuedEvent = new QueuedQuasselEvent(event);
+ auto *queuedEvent = new QueuedQuasselEvent(event);
QCoreApplication::postEvent(this, queuedEvent);
}
else {
void EventManager::customEvent(QEvent *event)
{
if (event->type() == QEvent::User) {
- QueuedQuasselEvent *queuedEvent = static_cast<QueuedQuasselEvent *>(event);
+ auto *queuedEvent = static_cast<QueuedQuasselEvent *>(event);
processEvent(queuedEvent->event);
event->accept();
}
// special handling for numeric IrcEvents
if ((type & ~IrcEventNumericMask) == IrcEventNumeric) {
- ::IrcEventNumeric *numEvent = static_cast< ::IrcEventNumeric *>(event);
+ auto *numEvent = static_cast< ::IrcEventNumeric *>(event);
if (!numEvent)
qWarning() << "Invalid event type for IrcEventNumeric!";
else {
}
// finally, deliverance!
- void *param[] = { 0, Q_ARG(Event *, event).data() };
+ void *param[] = { nullptr, Q_ARG(Event *, event).data() };
obj->qt_metacall(QMetaObject::InvokeMetaMethod, it->methodIndex, param);
}