Skip to content

const correctness #89

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

Merged
merged 1 commit into from
Dec 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cores/esp32/IPAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ size_t IPAddress::printTo(Print& p) const
return n;
}

String IPAddress::toString()
String IPAddress::toString() const
{
char szRet[16];
sprintf(szRet,"%u.%u.%u.%u", _address.bytes[0], _address.bytes[1], _address.bytes[2], _address.bytes[3]);
Expand Down Expand Up @@ -119,4 +119,4 @@ bool IPAddress::fromString(const char *address)
}
_address.bytes[3] = acc;
return true;
}
}
2 changes: 1 addition & 1 deletion cores/esp32/IPAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class IPAddress: public Printable
IPAddress& operator=(uint32_t address);

virtual size_t printTo(Print& p) const;
String toString();
String toString() const;

friend class EthernetClass;
friend class UDP;
Expand Down