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:
@ -218,7 +218,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);
|
||||
}
|
||||
|
||||
@ -1108,7 +1108,7 @@ bool WiFiClientSecure::probeMaxFragmentLength(const char* name, uint16_t port, u
|
||||
return WiFiClientSecure::probeMaxFragmentLength(remote_addr, port, len);
|
||||
}
|
||||
|
||||
bool WiFiClientSecure::probeMaxFragmentLength(const String host, uint16_t port, uint16_t len) {
|
||||
bool WiFiClientSecure::probeMaxFragmentLength(const String& host, uint16_t port, uint16_t len) {
|
||||
return WiFiClientSecure::probeMaxFragmentLength(host.c_str(), port, len);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user