diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-11 00:55:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:27:46 +0100 |
commit | 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch) | |
tree | ca64ba25aa735d25013d76c6d83570496c742014 /Userland/DevTools/Inspector | |
parent | ad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff) | |
download | serenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip |
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'Userland/DevTools/Inspector')
-rw-r--r-- | Userland/DevTools/Inspector/RemoteProcess.cpp | 2 | ||||
-rw-r--r-- | Userland/DevTools/Inspector/RemoteProcess.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/Inspector/RemoteProcess.cpp b/Userland/DevTools/Inspector/RemoteProcess.cpp index 9d744189af..ae2b6b2a55 100644 --- a/Userland/DevTools/Inspector/RemoteProcess.cpp +++ b/Userland/DevTools/Inspector/RemoteProcess.cpp @@ -82,7 +82,7 @@ void RemoteProcess::set_inspected_object(FlatPtr address) m_client->async_set_inspected_object(m_pid, address); } -void RemoteProcess::set_property(FlatPtr object, const StringView& name, const JsonValue& value) +void RemoteProcess::set_property(FlatPtr object, StringView name, const JsonValue& value) { m_client->async_set_object_property(m_pid, object, name, value.to_string()); } diff --git a/Userland/DevTools/Inspector/RemoteProcess.h b/Userland/DevTools/Inspector/RemoteProcess.h index 83baad53fc..b153be3198 100644 --- a/Userland/DevTools/Inspector/RemoteProcess.h +++ b/Userland/DevTools/Inspector/RemoteProcess.h @@ -30,7 +30,7 @@ public: void set_inspected_object(FlatPtr); - void set_property(FlatPtr object, const StringView& name, const JsonValue& value); + void set_property(FlatPtr object, StringView name, const JsonValue& value); bool is_inspectable(); |