Skip to content

Commit 2462ec0

Browse files
committed
Use const attribute for IPAddress parameters
1 parent b53dd95 commit 2462ec0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Arduino_EthernetConnectionHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ EthernetConnectionHandler::EthernetConnectionHandler(bool const keep_alive)
3434

3535
}
3636

37-
EthernetConnectionHandler::EthernetConnectionHandler(IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress netmask, bool const keep_alive)
37+
EthernetConnectionHandler::EthernetConnectionHandler(const IPAddress ip, const IPAddress dns, const IPAddress gateway, const IPAddress netmask, bool const keep_alive)
3838
: ConnectionHandler{keep_alive, NetworkAdapter::ETHERNET}
3939
,_ip{ip}
4040
,_dns{dns}

Diff for: src/Arduino_EthernetConnectionHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EthernetConnectionHandler : public ConnectionHandler
3232
public:
3333

3434
EthernetConnectionHandler(bool const keep_alive = true);
35-
EthernetConnectionHandler(IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress netmask, bool const keep_alive = true);
35+
EthernetConnectionHandler(const IPAddress ip, const IPAddress dns, const IPAddress gateway, const IPAddress netmask, bool const keep_alive = true);
3636
EthernetConnectionHandler(const char * ip, const char * dns, const char * gateway, const char * netmask, bool const keep_alive = true);
3737

3838

0 commit comments

Comments
 (0)