aboutsummaryrefslogtreecommitdiff
path: root/include/device.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-23 13:17:23 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:56 +0200
commit7bb54901c9b557aaae2c4c5f9ea95af162caaf18 (patch)
tree658f1169cb2222c6098229706ce461aafa8aefef /include/device.h
parent9d41a8fe54a6acf2282f8c3bd653d2bcae729f20 (diff)
downloadlibnitrokey-7bb54901c9b557aaae2c4c5f9ea95af162caaf18.tar.gz
libnitrokey-7bb54901c9b557aaae2c4c5f9ea95af162caaf18.tar.bz2
Fix const declarations
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/device.h b/include/device.h
index dc7832d..2b51812 100644
--- a/include/device.h
+++ b/include/device.h
@@ -39,10 +39,8 @@ class Device {
*/
virtual CommError recv(void *packet);
- int get_retry_count() { return m_retry_count; }
- const;
- std::chrono::milliseconds get_retry_timeout() { return m_retry_timeout; }
- const;
+ int get_retry_count() const { return m_retry_count; };
+ std::chrono::milliseconds get_retry_timeout() const { return m_retry_timeout; };
protected:
uint16_t m_vid;