mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Update Badge<T> instantiations to simply be {}.
This commit is contained in:
parent
fa6446fc0d
commit
fdf3608c8a
11 changed files with 23 additions and 23 deletions
|
@ -78,13 +78,13 @@ void Inode::will_be_destroyed()
|
|||
void Inode::inode_contents_changed(off_t offset, ssize_t size, const byte* data)
|
||||
{
|
||||
if (m_vmo)
|
||||
m_vmo->inode_contents_changed(Badge<Inode>(), offset, size, data);
|
||||
m_vmo->inode_contents_changed({}, offset, size, data);
|
||||
}
|
||||
|
||||
void Inode::inode_size_changed(size_t old_size, size_t new_size)
|
||||
{
|
||||
if (m_vmo)
|
||||
m_vmo->inode_size_changed(Badge<Inode>(), old_size, new_size);
|
||||
m_vmo->inode_size_changed({}, old_size, new_size);
|
||||
}
|
||||
|
||||
int Inode::set_atime(time_t)
|
||||
|
|
|
@ -189,7 +189,7 @@ KResultOr<Retained<FileDescriptor>> VFS::open(StringView path, int options, mode
|
|||
auto descriptor_or_error = (*it).value->open(options);
|
||||
if (descriptor_or_error.is_error())
|
||||
return descriptor_or_error.error();
|
||||
descriptor_or_error.value()->set_original_inode(Badge<VFS>(), inode);
|
||||
descriptor_or_error.value()->set_original_inode({}, inode);
|
||||
return descriptor_or_error;
|
||||
}
|
||||
if (should_truncate_file)
|
||||
|
|
|
@ -23,7 +23,7 @@ MasterPTY::~MasterPTY()
|
|||
#ifdef MASTERPTY_DEBUG
|
||||
dbgprintf("~MasterPTY(%u)\n", m_index);
|
||||
#endif
|
||||
PTYMultiplexer::the().notify_master_destroyed(Badge<MasterPTY>(), m_index);
|
||||
PTYMultiplexer::the().notify_master_destroyed({}, m_index);
|
||||
}
|
||||
|
||||
String MasterPTY::pts_name() const
|
||||
|
|
|
@ -62,5 +62,5 @@ ssize_t SlavePTY::read(FileDescriptor& descriptor, byte* buffer, ssize_t size)
|
|||
|
||||
void SlavePTY::close()
|
||||
{
|
||||
m_master->notify_slave_closed(Badge<SlavePTY>());
|
||||
m_master->notify_slave_closed({});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue