aboutsummaryrefslogtreecommitdiff
path: root/src/network/websocketconnection.cpp
diff options
context:
space:
mode:
authorOmniTroid <davidskoland@gmail.com>2024-07-21 16:34:23 +0200
committerGitHub <noreply@github.com>2024-07-21 16:34:23 +0200
commitec914d90478490e3b9fff5bfe71dc232fff1cca1 (patch)
tree3cd27e9521dc457ce49a662678f0ecd727a68c95 /src/network/websocketconnection.cpp
parent4129c1ffda6ea333c66b6f950da05a9c161a7738 (diff)
FIx several compiler warnings (#1025)
* Do not use deprecated QAbstractSocket::SocketError * Do not use deprecated ::location * Do not discard translation load return value * Use static function calls where applicable * Remove unused include * Remove qt6 check * Remove deprecated type() * Remove qt6 check * Use typeId instead of deprecated type * clang-format fix
Diffstat (limited to 'src/network/websocketconnection.cpp')
-rw-r--r--src/network/websocketconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/websocketconnection.cpp b/src/network/websocketconnection.cpp
index 133eae1d..9d9183ca 100644
--- a/src/network/websocketconnection.cpp
+++ b/src/network/websocketconnection.cpp
@@ -11,7 +11,7 @@ WebSocketConnection::WebSocketConnection(AOApplication *ao_app, QObject *parent)
, m_socket(new QWebSocket(QString(), QWebSocketProtocol::VersionLatest, this))
, m_last_state(QAbstractSocket::UnconnectedState)
{
- connect(m_socket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error), this, &WebSocketConnection::onError);
+ connect(m_socket, &QWebSocket::errorOccurred, this, &WebSocketConnection::onError);
connect(m_socket, &QWebSocket::stateChanged, this, &WebSocketConnection::onStateChanged);
connect(m_socket, &QWebSocket::textMessageReceived, this, &WebSocketConnection::onTextMessageReceived);
}