Don't call metaObject()->method() redundantly
The desired method is already stored in a local variable. Change-Id: Ibf0078813c7aebc83604b9c7ad9a8b6c596c5c65 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8710c900d6
commit
d0c0360392
@ -1657,7 +1657,7 @@ void QStateMachinePrivate::handleTransitionSignal(QObject *sender, int signalInd
|
||||
|
||||
#ifdef QSTATEMACHINE_DEBUG
|
||||
qDebug() << q_func() << ": sending signal event ( sender =" << sender
|
||||
<< ", signal =" << sender->metaObject()->method(signalIndex).methodSignature().constData() << ')';
|
||||
<< ", signal =" << method.methodSignature().constData() << ')';
|
||||
#endif
|
||||
postInternalEvent(new QStateMachine::SignalEvent(sender, signalIndex, vargs));
|
||||
processEvents(DirectProcessing);
|
||||
|
Loading…
Reference in New Issue
Block a user