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:
parent
fdbdc4d5ff
commit
0fab68ee16
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue