summaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-05-12 20:44:05 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-05-12 20:57:59 +0200
commitebfcff1730b5db2ad85ad47c4ac3963581ef43ba (patch)
treef4294ba3ae6f7a21e73334311fe15e9d050e3fe8 /device.cc
parenta34c47d3f5580d90797f4c5c428881f4c68048c2 (diff)
downloadlibnitrokey-ebfcff1730b5db2ad85ad47c4ac3963581ef43ba.tar.gz
libnitrokey-ebfcff1730b5db2ad85ad47c4ac3963581ef43ba.tar.bz2
Use bool explicitly for success variable
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.cc b/device.cc
index 1c87f7f..5f1c9a0 100644
--- a/device.cc
+++ b/device.cc
@@ -72,7 +72,7 @@ bool Device::_connect() {
// hid_init(); // done automatically on hid_open
mp_devhandle = hid_open(m_vid, m_pid, nullptr);
- const auto success = mp_devhandle != nullptr;
+ const bool success = mp_devhandle != nullptr;
LOG(std::string("Connection success: ") + std::to_string(success), Loglevel::DEBUG_L2);
return success;
}