Skip to content

Commit

Permalink
Use bool explicitly for success variable
Browse files Browse the repository at this point in the history
Signed-off-by: Szczepan Zalega <[email protected]>
  • Loading branch information
szszszsz committed May 12, 2017
1 parent a34c47d commit ebfcff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ebfcff1

Please sign in to comment.