mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
Kernel: Remove an unnecessary const_cast from InodeWatcher
This commit is contained in:
1 parent
8fb32d1435
commit
9ca56bccc6
1 file changed
+1
-1
@@ -71,7 +71,7 @@ ErrorOr<void> InodeWatcher::close()
|
||||
{
|
||||
m_watch_maps.with([this](auto& watch_maps) {
|
||||
for (auto& entry : watch_maps.wd_to_watches) {
|
||||
auto& inode = const_cast<Inode&>(entry.value->inode);
|
||||
auto& inode = entry.value->inode;
|
||||
inode.unregister_watcher({}, *this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user