forked from qt-creator/qt-creator
Use typed syntax in calls to QMetaObject::invokeMethod
We do it wherever possible. Some places can't be fixed since they still rely on dynamic introspection (mainly QQuickItem cases). Change-Id: Ia00b4a04d8b995c9a43b7bf2dbe76a60364bb8ca Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -765,8 +765,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
|
||||
m_scheduledTestResponses.remove(token);
|
||||
showMessage(QString("FAKING TEST RESPONSE (TOKEN: %2, RESPONSE: %3)")
|
||||
.arg(token).arg(buffer));
|
||||
QMetaObject::invokeMethod(this, "handleResponse",
|
||||
Q_ARG(QString, buffer));
|
||||
QMetaObject::invokeMethod(this, [this, buffer] { handleResponse(buffer); });
|
||||
} else {
|
||||
m_gdbProc.write(cmd.function.toUtf8() + "\r\n");
|
||||
if (command.flags & NeedsFlush)
|
||||
|
||||
Reference in New Issue
Block a user