diff options
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/NetworkingManagement.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/NetworkingManagement.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/NetworkingManagement.cpp b/Kernel/Net/NetworkingManagement.cpp index 64ed1ef2a6..994de75306 100644 --- a/Kernel/Net/NetworkingManagement.cpp +++ b/Kernel/Net/NetworkingManagement.cpp @@ -63,7 +63,7 @@ RefPtr<NetworkAdapter> NetworkingManagement::from_ipv4_address(const IPv4Address return m_loopback_adapter; return {}; } -RefPtr<NetworkAdapter> NetworkingManagement::lookup_by_name(const StringView& name) const +RefPtr<NetworkAdapter> NetworkingManagement::lookup_by_name(StringView name) const { MutexLocker locker(m_lock); RefPtr<NetworkAdapter> found_adapter; diff --git a/Kernel/Net/NetworkingManagement.h b/Kernel/Net/NetworkingManagement.h index cec11713cf..f2feb641fd 100644 --- a/Kernel/Net/NetworkingManagement.h +++ b/Kernel/Net/NetworkingManagement.h @@ -34,7 +34,7 @@ public: void for_each(Function<void(NetworkAdapter&)>); RefPtr<NetworkAdapter> from_ipv4_address(const IPv4Address&) const; - RefPtr<NetworkAdapter> lookup_by_name(const StringView&) const; + RefPtr<NetworkAdapter> lookup_by_name(StringView) const; NonnullRefPtr<NetworkAdapter> loopback_adapter() const; |