mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
abench: Prefer FileSystem over DeprecatedFile
This commit is contained in:
parent
0b49b93e98
commit
951b77e04d
2 changed files with 3 additions and 3 deletions
|
@ -8,9 +8,9 @@
|
|||
#include <AK/Types.h>
|
||||
#include <LibAudio/Loader.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/ElapsedTimer.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -28,7 +28,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
args_parser.add_option(sample_count, "How many samples to load at maximum", "sample-count", 's', "samples");
|
||||
args_parser.parse(args);
|
||||
|
||||
TRY(Core::System::unveil(Core::DeprecatedFile::absolute_path(path), "r"sv));
|
||||
TRY(Core::System::unveil(TRY(FileSystem::absolute_path(path)), "r"sv));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
TRY(Core::System::pledge("stdio recvfd rpath"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue