mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Pass string objects by reference (#5378)
This commit is contained in:
@ -132,7 +132,7 @@ int WiFiClient::connect(const char* host, uint16_t port)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int WiFiClient::connect(const String host, uint16_t port)
|
||||
int WiFiClient::connect(const String& host, uint16_t port)
|
||||
{
|
||||
return connect(host.c_str(), port);
|
||||
}
|
||||
|
Reference in New Issue
Block a user