From 0fab68ee16dd9f2b66c6d905cfe82415001a5e5e Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 27 May 2023 14:16:19 +0200 Subject: [PATCH] LibCoredump: Avoid unnecessary conversion to DeprecatedString --- Userland/Libraries/LibCoredump/Inspector.cpp | 2 +- Userland/Libraries/LibCoredump/Inspector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibCoredump/Inspector.cpp b/Userland/Libraries/LibCoredump/Inspector.cpp index 185e8811666..b5cae587a26 100644 --- a/Userland/Libraries/LibCoredump/Inspector.cpp +++ b/Userland/Libraries/LibCoredump/Inspector.cpp @@ -8,7 +8,7 @@ namespace Coredump { -OwnPtr Inspector::create(DeprecatedString const& coredump_path, Function on_progress) +OwnPtr Inspector::create(StringView coredump_path, Function 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 adc30771a54..2fd889dfcd2 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 create(DeprecatedString const& coredump_path, Function on_progress = {}); + static OwnPtr create(StringView coredump_path, Function on_progress = {}); virtual ~Inspector() override = default; // ^Debug::ProcessInspector