From 49e5d477a2b8faf410f871396dba97670aa242d9 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 8 Aug 2016 18:01:56 +0200 Subject: Move manager instance to shared_ptr Signed-off-by: Szczepan Zalega --- include/NitrokeyManager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h index 6fa096a..ca8ce78 100644 --- a/include/NitrokeyManager.h +++ b/include/NitrokeyManager.h @@ -19,7 +19,7 @@ namespace nitrokey { class NitrokeyManager { public: - static NitrokeyManager *instance(); + static shared_ptr instance(); bool first_authenticate(const char *pin, const char *temporary_password); bool write_HOTP_slot(uint8_t slot_number, const char *slot_name, const char *secret, uint8_t hotp_counter, @@ -81,11 +81,11 @@ namespace nitrokey { bool is_AES_supported(const char *user_password); + ~NitrokeyManager(); private: NitrokeyManager(); - ~NitrokeyManager(); - static NitrokeyManager *_instance; + static shared_ptr _instance; bool connected; std::shared_ptr device; -- cgit v1.2.1