summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-05-27 14:16:19 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-27 17:30:55 +0200
commit0fab68ee16dd9f2b66c6d905cfe82415001a5e5e (patch)
tree275b04368a8a41b2835934f32fa75624654c579b
parentfdbdc4d5ffe519848a45634ea3964c9108d7161a (diff)
downloadserenity-0fab68ee16dd9f2b66c6d905cfe82415001a5e5e.zip
LibCoredump: Avoid unnecessary conversion to DeprecatedString
-rw-r--r--Userland/Libraries/LibCoredump/Inspector.cpp2
-rw-r--r--Userland/Libraries/LibCoredump/Inspector.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCoredump/Inspector.cpp b/Userland/Libraries/LibCoredump/Inspector.cpp
index 185e881166..b5cae587a2 100644
--- a/Userland/Libraries/LibCoredump/Inspector.cpp
+++ b/Userland/Libraries/LibCoredump/Inspector.cpp
@@ -8,7 +8,7 @@
namespace Coredump {
-OwnPtr<Inspector> Inspector::create(DeprecatedString const& coredump_path, Function<void(float)> on_progress)
+OwnPtr<Inspector> Inspector::create(StringView coredump_path, Function<void(float)> on_progress)
{
auto reader = Reader::create(coredump_path);
if (!reader)
diff --git a/Userland/Libraries/LibCoredump/Inspector.h b/Userland/Libraries/LibCoredump/Inspector.h
index adc30771a5..2fd889dfcd 100644
--- a/Userland/Libraries/LibCoredump/Inspector.h
+++ b/Userland/Libraries/LibCoredump/Inspector.h
@@ -17,7 +17,7 @@ class Inspector : public Debug::ProcessInspector {
AK_MAKE_NONMOVABLE(Inspector);
public:
- static OwnPtr<Inspector> create(DeprecatedString const& coredump_path, Function<void(float)> on_progress = {});
+ static OwnPtr<Inspector> create(StringView coredump_path, Function<void(float)> on_progress = {});
virtual ~Inspector() override = default;
// ^Debug::ProcessInspector