aboutsummaryrefslogtreecommitdiff
path: root/lib/ssosession.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 16:19:55 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 16:19:55 +0200
commite1f5d0aa2c33e6da6c3a609c8bc7e0b5867e748d (patch)
tree6aaf570503d3a9756d44c3d932e6f5fbe2172cd6 /lib/ssosession.cpp
parentb9bc0ca1af18cd247a21fe6bc0f644bf7270a770 (diff)
downloadlibquotient-e1f5d0aa2c33e6da6c3a609c8bc7e0b5867e748d.tar.gz
libquotient-e1f5d0aa2c33e6da6c3a609c8bc7e0b5867e748d.zip
SsoSession: let Private be a class everywhere
Fixes a compilation warning that Private is a struct in one place and a class in another.
Diffstat (limited to 'lib/ssosession.cpp')
-rw-r--r--lib/ssosession.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssosession.cpp b/lib/ssosession.cpp
index 0f8f96e1..be701204 100644
--- a/lib/ssosession.cpp
+++ b/lib/ssosession.cpp
@@ -10,7 +10,8 @@
using namespace Quotient;
-struct SsoSession::Private {
+class SsoSession::Private {
+public:
Private(SsoSession* q, const QString& initialDeviceName = {},
const QString& deviceId = {}, Connection* connection = nullptr)
: initialDeviceName(initialDeviceName)
@@ -38,7 +39,7 @@ struct SsoSession::Private {
processCallback();
});
QObject::connect(socket, &QTcpSocket::disconnected, socket,
- [this] { socket->deleteLater(); });
+ &QTcpSocket::deleteLater);
});
}
void processCallback();