aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-31 13:43:11 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-31 14:20:58 +0200
commitbf289b885768ae5db4e15e18f66390595a2b20f3 (patch)
tree65c99289e58c9492d2510a7f4d918318c71c7e10 /device.cc
parent9892ae74c8e828d163e797b9a309972bbe8ef367 (diff)
downloadlibnitrokey-bf289b885768ae5db4e15e18f66390595a2b20f3.tar.gz
libnitrokey-bf289b885768ae5db4e15e18f66390595a2b20f3.tar.bz2
Fix compilation warnings
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/device.cc b/device.cc
index 97197ee..101ebd0 100644
--- a/device.cc
+++ b/device.cc
@@ -22,15 +22,16 @@ std::chrono::milliseconds Device::default_delay {0} ;
Device::Device(const uint16_t vid, const uint16_t pid, const DeviceModel model,
const milliseconds send_receive_delay, const int retry_receiving_count,
const milliseconds retry_timeout)
- : m_vid(vid),
+ :
+ last_command_status(0),
+ m_vid(vid),
m_pid(pid),
+ m_model(model),
m_retry_sending_count(3),
m_retry_receiving_count(retry_receiving_count),
m_retry_timeout(retry_timeout),
- mp_devhandle(nullptr),
- last_command_status(0),
- m_model(model),
- m_send_receive_delay(send_receive_delay)
+ m_send_receive_delay(send_receive_delay),
+ mp_devhandle(nullptr)
{
instances_count++;
}