From 77922fa33547ce24535f2e514c9a112dcb496f18 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 16 Nov 2020 21:54:50 +0100 Subject: New upstream version 2.3.0~rc2+repack --- Network/PSKReporter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Network/PSKReporter.cpp') diff --git a/Network/PSKReporter.cpp b/Network/PSKReporter.cpp index fcdebf2c..35c56f23 100644 --- a/Network/PSKReporter.cpp +++ b/Network/PSKReporter.cpp @@ -84,7 +84,7 @@ public: { if (!socket_ || QAbstractSocket::UnconnectedState == socket_->state () - || (socket_->socketType () != config_->psk_reporter_tcpip () ? QAbstractSocket::TcpSocket : QAbstractSocket::UdpSocket)) + || (socket_->socketType () != (config_->psk_reporter_tcpip () ? QAbstractSocket::TcpSocket : QAbstractSocket::UdpSocket))) { // we need to create the appropriate socket if (socket_ @@ -145,8 +145,10 @@ public: #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect (socket_.get (), &QAbstractSocket::errorOccurred, this, &PSKReporter::impl::handle_socket_error); -#else +#elif QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) connect (socket_.data (), QOverload::of (&QAbstractSocket::error), this, &PSKReporter::impl::handle_socket_error); +#else + connect (socket_.data (), static_cast (&QAbstractSocket::error), this, &PSKReporter::impl::handle_socket_error); #endif // use this for pseudo connection with UDP, allows us to use -- cgit v1.2.3