diff options
author | Janek Bevendorff <janek@jbev.net> | 2018-01-24 15:22:20 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2018-01-24 15:32:37 +0300 |
commit | 7a6850d5fe38b4e19f12d0dc658c8b05ad0ea3bb (patch) | |
tree | 2a0ba9edb265861c423e439abe05e8f3ce8bb9d8 /tests/TestYkChallengeResponseKey.h | |
parent | 6e2500385c8e00c3abe0d903625b23334411c5d4 (diff) |
Move useful QTest template specializations to global header file
Fix KDBX test linker errors on Windows
Diffstat (limited to 'tests/TestYkChallengeResponseKey.h')
-rw-r--r-- | tests/TestYkChallengeResponseKey.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TestYkChallengeResponseKey.h b/tests/TestYkChallengeResponseKey.h index 2bc344ec0..82223ec35 100644 --- a/tests/TestYkChallengeResponseKey.h +++ b/tests/TestYkChallengeResponseKey.h @@ -20,6 +20,7 @@ #define KEEPASSX_TESTYUBIKEYCHALRESP_H #include <QObject> +#include <QScopedPointer> #include "keys/YkChallengeResponseKey.h" @@ -29,7 +30,6 @@ class TestYubiKeyChalResp: public QObject private slots: void initTestCase(); - void cleanupTestCase(); void init(); @@ -48,8 +48,8 @@ private slots: void ykDetected(int slot, bool blocking); private: - int m_detected; - YkChallengeResponseKey *m_key; + int m_detected = 0; + QScopedPointer<YkChallengeResponseKey> m_key; }; #endif // KEEPASSX_TESTYUBIKEYCHALRESP_H |