diff options
Diffstat (limited to 'src/Common/SCard.cpp')
-rw-r--r-- | src/Common/SCard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/SCard.cpp b/src/Common/SCard.cpp index 9f8d1145..edd315f6 100644 --- a/src/Common/SCard.cpp +++ b/src/Common/SCard.cpp @@ -1,39 +1,39 @@ #include "SCard.h" using namespace std; namespace VeraCrypt { SCardManager SCard::manager; - SCard::SCard() : m_reader(NULL) + SCard::SCard() { } SCard::SCard(size_t slotId) { m_reader = SCard::manager.GetReader(slotId); } SCard::~SCard() { if (m_reader) { m_reader->Disconnect(); } } SCard::SCard(const SCard& other) : m_reader(other.m_reader) { } SCard::SCard(SCard&& other) : m_reader(std::move(other.m_reader)) { } SCard& SCard::operator = (const SCard& other) { if (this != &other) { m_reader = other.m_reader; } |