aboutsummaryrefslogtreecommitdiff
path: root/lib/networkaccessmanager.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
commit0a2acd750a4155969092be674ed3dd9a71b2354f (patch)
tree37a45405633d2a229f60a478f05979218f8c7d38 /lib/networkaccessmanager.cpp
parent1a832ae9b6a0d679b551fd644136e4bc17e7db29 (diff)
downloadlibquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.tar.gz
libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.zip
Fix clang-tidy/clazy warnings
Diffstat (limited to 'lib/networkaccessmanager.cpp')
-rw-r--r--lib/networkaccessmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/networkaccessmanager.cpp b/lib/networkaccessmanager.cpp
index b9037bcc..e8aa85df 100644
--- a/lib/networkaccessmanager.cpp
+++ b/lib/networkaccessmanager.cpp
@@ -52,9 +52,10 @@ static NetworkAccessManager* createNam()
auto nam = new NetworkAccessManager(QCoreApplication::instance());
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
// See #109; in newer Qt, bearer management is deprecated altogether
- nam->connect(nam, &QNetworkAccessManager::networkAccessibleChanged, [nam] {
- nam->setNetworkAccessible(QNetworkAccessManager::Accessible);
- });
+ NetworkAccessManager::connect(nam,
+ &QNetworkAccessManager::networkAccessibleChanged, [nam] {
+ nam->setNetworkAccessible(QNetworkAccessManager::Accessible);
+ });
#endif
return nam;
}