Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trivial: WiFiManagerParameter get accessors should work on const #1005

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

flavio-fernandes
Copy link
Contributor

Enhancement: It should be okay to invoke getID() and getValue() in a
const instance of the WiFiManagerParameter class.

For usage example, see: flavio-fernandes/persistWifiSetting@135adb1

…ances

Enhancement: It should be okay to invoke getID() and getValue() in a
const instance of the WiFiManagerParameter class.

See: flavio-fernandes/persistWifiSetting@135adb1
@flavio-fernandes flavio-fernandes force-pushed the constWiFiManagerParameter branch from 5bc8132 to 8935680 Compare February 7, 2020 12:39
@tablatronix
Copy link
Collaborator

Could this break anything ?

@tablatronix tablatronix added Discussion Further Discussion ongoing enhancement Feature Request labels Nov 19, 2020
@tablatronix tablatronix added this to the dev milestone Nov 19, 2020
@flavio-fernandes
Copy link
Contributor Author

flavio-fernandes commented Nov 19, 2020

Could this break anything ?

I don't think so. If anything, it is just making it possible to be used by a constant instance of the class.
Since it returns const char* and a int, there is no changes to the instance.
If it broke something we would see it at compile time, not run time.

@tablatronix tablatronix changed the base branch from development to master January 25, 2021 16:06
@tablatronix tablatronix merged commit 8503260 into tzapu:master Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Further Discussion ongoing enhancement Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants