1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibCoredump: Avoid unnecessary conversion to DeprecatedString

This commit is contained in:
Ben Wiederhake 2023-05-27 14:16:19 +02:00 committed by Andreas Kling
parent fdbdc4d5ff
commit 0fab68ee16
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
namespace Coredump { 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); auto reader = Reader::create(coredump_path);
if (!reader) if (!reader)

View file

@ -17,7 +17,7 @@ class Inspector : public Debug::ProcessInspector {
AK_MAKE_NONMOVABLE(Inspector); AK_MAKE_NONMOVABLE(Inspector);
public: 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; virtual ~Inspector() override = default;
// ^Debug::ProcessInspector // ^Debug::ProcessInspector