diff --git a/src/network/UBNetworkAccessManager.h b/src/network/UBNetworkAccessManager.h index 152440674..e89d1507d 100644 --- a/src/network/UBNetworkAccessManager.h +++ b/src/network/UBNetworkAccessManager.h @@ -30,6 +30,7 @@ #ifndef UBNETWORKACCESSMANAGER_H #define UBNETWORKACCESSMANAGER_H +#include #include class UBNetworkAccessManager : public QNetworkAccessManager @@ -50,7 +51,7 @@ class UBNetworkAccessManager : public QNetworkAccessManager static UBNetworkAccessManager *sNetworkAccessManager; - volatile int mProxyAuthenticationCount; + std::atomic_int mProxyAuthenticationCount; private slots: void authenticationRequired(QNetworkReply *reply, QAuthenticator *auth);