forked from qt-creator/qt-creator
Remove unneeded version checks
After we raised the minimum Qt version. Change-Id: Ife81a25c3c205646eece30d6dd1a95f4b97eda01 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -33,11 +33,7 @@ void Relayer::setClientSocket(QTcpSocket *clientSocket)
|
||||
QTC_CHECK(!m_clientSocket);
|
||||
m_clientSocket = clientSocket;
|
||||
if (m_clientSocket) {
|
||||
#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(m_clientSocket, errorOccurred, this, &Relayer::handleClientHasError);
|
||||
connect(m_clientSocket, &QAbstractSocket::disconnected,
|
||||
this, [this](){server()->removeRelayConnection(this);});
|
||||
|
||||
Reference in New Issue
Block a user