diff --git a/drivers/unix/net_socket_posix.cpp b/drivers/unix/net_socket_posix.cpp index 1e52b39be156..b518c7073fc9 100644 --- a/drivers/unix/net_socket_posix.cpp +++ b/drivers/unix/net_socket_posix.cpp @@ -248,7 +248,7 @@ bool NetSocketPosix::_can_use_ip(const IPAddress &p_ip, const bool p_for_bind) c return !(_ip_type != IP::TYPE_ANY && !p_ip.is_wildcard() && _ip_type != type); } -_FORCE_INLINE_ Error NetSocketPosix::_change_multicast_group(IPAddress p_ip, String p_if_name, bool p_add) { +_FORCE_INLINE_ Error NetSocketPosix::_change_multicast_group(IPAddress p_ip, const String &p_if_name, bool p_add) { ERR_FAIL_COND_V(!is_open(), ERR_UNCONFIGURED); ERR_FAIL_COND_V(!_can_use_ip(p_ip, false), ERR_INVALID_PARAMETER); diff --git a/drivers/unix/net_socket_posix.h b/drivers/unix/net_socket_posix.h index aa59ff36eedb..e5944df5b465 100644 --- a/drivers/unix/net_socket_posix.h +++ b/drivers/unix/net_socket_posix.h @@ -62,7 +62,7 @@ class NetSocketPosix : public NetSocket { NetError _get_socket_error() const; void _set_socket(SOCKET_TYPE p_sock, IP::Type p_ip_type, bool p_is_stream); - _FORCE_INLINE_ Error _change_multicast_group(IPAddress p_ip, String p_if_name, bool p_add); + _FORCE_INLINE_ Error _change_multicast_group(IPAddress p_ip, const String &p_if_name, bool p_add); _FORCE_INLINE_ void _set_close_exec_enabled(bool p_enabled); protected: diff --git a/main/performance.cpp b/main/performance.cpp index aff26c20a362..a37f72866b54 100644 --- a/main/performance.cpp +++ b/main/performance.cpp @@ -330,7 +330,7 @@ Performance::Performance() { singleton = this; } -Performance::MonitorCall::MonitorCall(Callable p_callable, Vector p_arguments) { +Performance::MonitorCall::MonitorCall(Callable p_callable, const Vector &p_arguments) { _callable = p_callable; _arguments = p_arguments; } diff --git a/main/performance.h b/main/performance.h index 34162b2da9c4..d84ac58497ab 100644 --- a/main/performance.h +++ b/main/performance.h @@ -57,7 +57,7 @@ class Performance : public Object { Vector _arguments; public: - MonitorCall(Callable p_callable, Vector p_arguments); + MonitorCall(Callable p_callable, const Vector &p_arguments); MonitorCall(); Variant call(bool &r_error, String &r_error_message); };