diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2019-09-15 03:18:15 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-10-10 04:09:08 +0300 |
commit | 062fe2661d2457b2ae200c11709175f9d9f2b2a3 (patch) | |
tree | 4dc129bcceb010349ed2ad13b1350e0be86de6c4 /src/tests | |
parent | 080015b84211f553920821387e91a3975f8d1410 (diff) |
Remove QAtomicInt compatibility layer
Qt 4: https://doc.qt.io/archives/qt-4.8/qatomicint.html
Qt 5: https://doc.qt.io/qt-5/qatomicint.html
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/TestSSLLocks/TestSSLLocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/TestSSLLocks/TestSSLLocks.cpp b/src/tests/TestSSLLocks/TestSSLLocks.cpp index 7b9cc41a2..289138ea4 100644 --- a/src/tests/TestSSLLocks/TestSSLLocks.cpp +++ b/src/tests/TestSSLLocks/TestSSLLocks.cpp @@ -7,7 +7,6 @@ #include <QtTest> #include "SSL.h" -#include "QAtomicIntCompat.h" #include <openssl/rand.h> @@ -30,7 +29,7 @@ public: void run() { unsigned char buf[64]; - while (QAtomicIntLoad(*m_running) == 1) { + while (m_running->load() == 1) { for (int i = 0; i < 1024; i++) { if (m_seed) { RAND_seed(buf, sizeof(buf)); |