1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:57:47 +00:00

Profiler: Replace Result<T, E> use with ErrorOr<T>

This commit is contained in:
Andreas Kling 2021-11-07 13:41:23 +01:00
parent e841f3c283
commit fbe8f185b5
3 changed files with 10 additions and 12 deletions

View file

@ -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();