Skip to content

Commit 209b079

Browse files
committed
[HID] added 'const' qualifier in HID initialization
See #3840 (comment)
1 parent fba6ca8 commit 209b079

File tree

2 files changed

+2
-2
lines changed
  • hardware/arduino

2 files changed

+2
-2
lines changed

Diff for: hardware/arduino/avr/libraries/HID/HID.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
class HIDDescriptorListNode {
4848
public:
4949
HIDDescriptorListNode *next = NULL;
50-
HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { }
50+
HIDDescriptorListNode(const void *d, const uint16_t l) : data(d), length(l) { }
5151

5252
const void* data;
5353
uint16_t length;

Diff for: hardware/arduino/sam/libraries/HID/HID.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class HIDDescriptorListNode {
4646
public:
4747
HIDDescriptorListNode *next = NULL;
48-
HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { }
48+
HIDDescriptorListNode(const void *d, const uint16_t l) : data(d), length(l) { }
4949
uint16_t length;
5050
const void* data;
5151
};

0 commit comments

Comments
 (0)