1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

[HID] added 'const' qualifier in HID initialization

See https://github.com/arduino/Arduino/pull/3840#discussion_r40438845
This commit is contained in:
Cristian Maglie 2015-09-28 13:32:01 +02:00
parent fba6ca88ed
commit 209b0796e6
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
class HIDDescriptorListNode {
public:
HIDDescriptorListNode *next = NULL;
HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { }
HIDDescriptorListNode(const void *d, const uint16_t l) : data(d), length(l) { }
const void* data;
uint16_t length;

View File

@ -45,7 +45,7 @@
class HIDDescriptorListNode {
public:
HIDDescriptorListNode *next = NULL;
HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { }
HIDDescriptorListNode(const void *d, const uint16_t l) : data(d), length(l) { }
uint16_t length;
const void* data;
};