aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-01-13 10:51:14 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:38 +0100
commitdaf51e7e6a6f6569472f2a5fae5a376f105f858a (patch)
tree037410f702ef6100cbf078fe48a36ae7d93badb3 /NitrokeyManager.cc
parent5558c22eefb35dabb341b568b3f233fca51ff056 (diff)
downloadlibnitrokey-daf51e7e6a6f6569472f2a5fae5a376f105f858a.tar.gz
libnitrokey-daf51e7e6a6f6569472f2a5fae5a376f105f858a.tar.bz2
Add const qualifier to functions
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 833e916..1753a73 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -614,7 +614,8 @@ namespace nitrokey{
return get_major_firmware_version() <= m[device->get_device_model()];
}
- DeviceModel NitrokeyManager::get_connected_device_model(){
+ DeviceModel NitrokeyManager::get_connected_device_model() const{
+ //FIXME throw if no device is connected or return unknown/unconnected value
return device->get_device_model();
}