Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestYkChallengeResponseKey.h')
-rw-r--r--tests/TestYkChallengeResponseKey.h6
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