mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove String::find_last (same as rfind)
This commit is contained in:
parent
fd5b6e1db2
commit
929b98d24b
26 changed files with 41 additions and 80 deletions
|
|
@ -66,7 +66,7 @@ Error WebSocketClient::connect_to_url(String p_url, const Vector<String> p_proto
|
|||
}
|
||||
|
||||
// Port
|
||||
p_len = host.find_last(":");
|
||||
p_len = host.rfind(":");
|
||||
if (p_len != -1 && p_len == host.find(":")) {
|
||||
port = host.substr(p_len, host.length() - p_len).to_int();
|
||||
host = host.substr(0, p_len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue