diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-05-12 20:44:05 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-05-12 20:57:59 +0200 |
commit | ebfcff1730b5db2ad85ad47c4ac3963581ef43ba (patch) | |
tree | f4294ba3ae6f7a21e73334311fe15e9d050e3fe8 | |
parent | a34c47d3f5580d90797f4c5c428881f4c68048c2 (diff) | |
download | libnitrokey-ebfcff1730b5db2ad85ad47c4ac3963581ef43ba.tar.gz libnitrokey-ebfcff1730b5db2ad85ad47c4ac3963581ef43ba.tar.bz2 |
Use bool explicitly for success variable
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | device.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |