From ebfcff1730b5db2ad85ad47c4ac3963581ef43ba Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 12 May 2017 20:44:05 +0200 Subject: Use bool explicitly for success variable Signed-off-by: Szczepan Zalega --- device.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device.cc') 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; } -- cgit v1.2.1