forked from qt-creator/qt-creator
Remove outdated code
Change-Id: I65e0ed79dabd987bc67d4082969835d52dd7cb8b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -272,12 +272,7 @@ bool DesignerExternalEditor::startEditor(const Utils::FilePath &filePath, QStrin
|
||||
m_processCache.insert(binary, socket);
|
||||
auto mapSlot = [this, binary] { processTerminated(binary); };
|
||||
connect(socket, &QAbstractSocket::disconnected, this, mapSlot);
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||
const auto errorOccurred = QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error);
|
||||
#else
|
||||
const auto errorOccurred = &QAbstractSocket::errorOccurred;
|
||||
#endif
|
||||
connect(socket, errorOccurred, this, mapSlot);
|
||||
connect(socket, &QAbstractSocket::errorOccurred, this, mapSlot);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user