Fix C++20 compatibility

This commit is contained in:
Nicolas Werner 2022-06-13 11:12:41 +02:00
parent bd9946bff9
commit 9b2a98b595
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -83,7 +83,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
}); });
connectivityTimer_.setInterval(CHECK_CONNECTIVITY_INTERVAL); connectivityTimer_.setInterval(CHECK_CONNECTIVITY_INTERVAL);
connect(&connectivityTimer_, &QTimer::timeout, this, [=]() { connect(&connectivityTimer_, &QTimer::timeout, this, [this]() {
if (http::client()->access_token().empty()) { if (http::client()->access_token().empty()) {
connectivityTimer_.stop(); connectivityTimer_.stop();
return; return;