mirror of https://github.com/noisymime/Arduino.git
[HID] added 'const' qualifier in HID initialization
See https://github.com/arduino/Arduino/pull/3840#discussion_r40438845
This commit is contained in:
parent
fba6ca88ed
commit
209b0796e6
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue