mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
FileDescription: Disallow construction with a null File
It's not valid for a FileDescription to not have a file, so let's disallow it by taking a File& (or FIFO&) in the constructor.
This commit is contained in:
@@ -12,7 +12,7 @@ File::~File()
|
||||
KResultOr<NonnullRefPtr<FileDescription>> File::open(int options)
|
||||
{
|
||||
UNUSED_PARAM(options);
|
||||
return FileDescription::create(this);
|
||||
return FileDescription::create(*this);
|
||||
}
|
||||
|
||||
void File::close()
|
||||
|
||||
Reference in New Issue
Block a user