mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Use const reference where favorable
This commit is contained in:
parent
9575dbdf78
commit
21d281c4a9
17 changed files with 71 additions and 30 deletions
|
|
@ -63,7 +63,7 @@ void TCPServerWinsock::cleanup() {
|
|||
};
|
||||
};
|
||||
|
||||
Error TCPServerWinsock::listen(uint16_t p_port, const IP_Address p_bind_address) {
|
||||
Error TCPServerWinsock::listen(uint16_t p_port, const IP_Address &p_bind_address) {
|
||||
|
||||
ERR_FAIL_COND_V(listen_sockfd != -1, ERR_ALREADY_IN_USE);
|
||||
ERR_FAIL_COND_V(!p_bind_address.is_valid() && !p_bind_address.is_wildcard(), ERR_INVALID_PARAMETER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue