mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibCoredump: Avoid unnecessary conversion to DeprecatedString
This commit is contained in:
parent
fdbdc4d5ff
commit
0fab68ee16
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue