aconv: Remove usage of ancient Core::DeprecatedFile

That'll teach me for merging without waiting for CI :^)
This commit is contained in:
Jelle Raaijmakers 2023-06-22 21:53:00 +02:00
parent 0d65e5f518
commit 56da2c5db6
Notes: sideshowbarker 2024-07-16 23:13:25 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/fgrep SYMBOLIC)"
install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)")
target_link_libraries(abench PRIVATE LibAudio LibFileSystem)
target_link_libraries(aconv PRIVATE LibAudio)
target_link_libraries(aconv PRIVATE LibAudio LibFileSystem)
target_link_libraries(aplay PRIVATE LibAudio LibFileSystem LibIPC)
target_link_libraries(asctl PRIVATE LibAudio LibIPC)
target_link_libraries(bt PRIVATE LibSymbolication)

View file

@ -9,8 +9,8 @@
#include <LibAudio/Loader.h>
#include <LibAudio/WavWriter.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/DeprecatedFile.h>
#include <LibCore/System.h>
#include <LibFileSystem/FileSystem.h>
#include <LibMain/Main.h>
#include <stdio.h>
@ -80,9 +80,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return Error::from_string_view("Output format must be specified manually when writing to standard output"sv);
if (input != "-"sv)
TRY(Core::System::unveil(Core::DeprecatedFile::absolute_path(input), "r"sv));
TRY(Core::System::unveil(TRY(FileSystem::absolute_path(input)), "r"sv));
if (output != "-"sv)
TRY(Core::System::unveil(Core::DeprecatedFile::absolute_path(output), "rwc"sv));
TRY(Core::System::unveil(TRY(FileSystem::absolute_path(output)), "rwc"sv));
TRY(Core::System::unveil(nullptr, nullptr));
RefPtr<Audio::Loader> input_loader;