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