summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/Profile.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-07 13:41:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commitfbe8f185b551c2149c188686e9d3bee642a52e7d (patch)
tree2fbcdd1721f09ce208e7ef1c17598b4226ed00d3 /Userland/DevTools/Profiler/Profile.h
parente841f3c283a113b07b70ac77cf31862dd7d0bcf4 (diff)
downloadserenity-fbe8f185b551c2149c188686e9d3bee642a52e7d.zip
Profiler: Replace Result<T, E> use with ErrorOr<T>
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.h')
-rw-r--r--Userland/DevTools/Profiler/Profile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h
index df89641da4..1dc895882c 100644
--- a/Userland/DevTools/Profiler/Profile.h
+++ b/Userland/DevTools/Profiler/Profile.h
@@ -20,7 +20,6 @@
#include <AK/MappedFile.h>
#include <AK/NonnullRefPtrVector.h>
#include <AK/OwnPtr.h>
-#include <AK/Result.h>
#include <AK/Variant.h>
#include <LibELF/Image.h>
#include <LibGUI/Forward.h>
@@ -142,7 +141,7 @@ struct ProcessFilter {
class Profile {
public:
- static Result<NonnullOwnPtr<Profile>, String> load_from_perfcore_file(const StringView& path);
+ static ErrorOr<NonnullOwnPtr<Profile>> load_from_perfcore_file(const StringView& path);
GUI::Model& model();
GUI::Model& samples_model();