mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
aconv: Remove usage of ancient Core::DeprecatedFile
That'll teach me for merging without waiting for CI :^)
This commit is contained in:
parent
0d65e5f518
commit
56da2c5db6
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue