mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibCore: Rename File::ShouldCloseFile{Description => Descriptor}
From https://youtu.be/YNSAZIW3EM0?t=1474: "Hmm... I don't think that name is right! From the perspective of userspace, this is a file descriptor. File description is what the kernel internally keeps track of, but as far as userspace is concerned, he just has a file descriptor. [...] Maybe that name should be changed." Core::File even has a member of this enum type... called m_should_close_file_descriptor - so let's just rename it :^)
This commit is contained in:
parent
664794b19e
commit
82956a08b3
Notes:
sideshowbarker
2024-07-19 01:44:43 +09:00
Author: https://github.com/linusg
Commit: 82956a08b3
Pull-request: https://github.com/SerenityOS/serenity/pull/3841
9 changed files with 16 additions and 16 deletions
|
@ -44,7 +44,7 @@ int main(int argc, char** argv)
|
|||
URL url;
|
||||
bool success;
|
||||
if (argc < 2) {
|
||||
success = f->open(STDIN_FILENO, Core::IODevice::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescription::No);
|
||||
success = f->open(STDIN_FILENO, Core::IODevice::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescriptor::No);
|
||||
} else {
|
||||
url = URL::create_with_file_protocol(argv[1]);
|
||||
f->set_filename(argv[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue