mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:57:36 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -9,7 +9,7 @@
|
|||
#include <AK/LexicalPath.h>
|
||||
#include <AK/URL.h>
|
||||
#include <Applications/Run/RunGML.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
|
@ -143,9 +143,9 @@ bool RunWindow::run_via_launch(DeprecatedString const& run_input)
|
|||
auto url = URL::create_with_url_or_path(run_input);
|
||||
|
||||
if (url.scheme() == "file") {
|
||||
auto real_path = Core::File::real_path_for(url.path());
|
||||
auto real_path = Core::DeprecatedFile::real_path_for(url.path());
|
||||
if (real_path.is_null()) {
|
||||
// errno *should* be preserved from Core::File::real_path_for().
|
||||
// errno *should* be preserved from Core::DeprecatedFile::real_path_for().
|
||||
warnln("Failed to launch '{}': {}", url.path(), strerror(errno));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue