Selaa lähdekoodia

LibCoredump: Avoid unnecessary conversion to DeprecatedString

Ben Wiederhake 2 vuotta sitten
vanhempi
commit
0fab68ee16

+ 1 - 1
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)

+ 1 - 1
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