Skip to content

Change definition of IRsend::sendRaw array parameter to const#227

Closed
Sebazzz wants to merge 1 commit intoArduino-IRremote:masterfrom
Sebazzz:master
Closed

Change definition of IRsend::sendRaw array parameter to const#227
Sebazzz wants to merge 1 commit intoArduino-IRremote:masterfrom
Sebazzz:master

Conversation

@Sebazzz
Copy link
Copy Markdown

@Sebazzz Sebazzz commented Oct 25, 2015

Change definition of IRsend::sendRaw method array parameter to const to allow passing constant array to function. This would allow passing const arrays to the method.

@z3t0
Copy link
Copy Markdown
Collaborator

z3t0 commented Dec 3, 2015

@Sebazzz but would that not restrict you to only passing constant arrays?

@Sebazzz
Copy link
Copy Markdown
Author

Sebazzz commented Dec 3, 2015

No but it would allow me to pass constant arrays. const in this context only means that the function won’t alter the array, which it doesn’t.

z3t0 added a commit that referenced this pull request Feb 21, 2016
@z3t0 z3t0 closed this Feb 21, 2016
Theaninova pushed a commit to Theaninova/Arduino-IRremote that referenced this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants