Skip to content

Commit 20f5f06

Browse files
authored
Rename constructor parameter from 'index' to 'idx', to solve Wshadow issue
Signed-off-by: marshfolx <marshfolx@outlook.com>
1 parent 474011d commit 20f5f06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/EEPROM/src/EEPROM.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ extern "C" {
3636

3737
struct EERef {
3838

39-
EERef(const int index)
40-
: index(index) {}
39+
EERef(const int idx)
40+
: index(idx) {}
4141

4242
//Access/read members.
4343
uint8_t operator*() const
@@ -140,8 +140,8 @@ struct EERef {
140140

141141
struct EEPtr {
142142

143-
EEPtr(const int index)
144-
: index(index) {}
143+
EEPtr(const int idx)
144+
: index(idx) {}
145145

146146
operator int() const
147147
{

0 commit comments

Comments
 (0)