Kernel/FileSystem: Change const placement to match style guide

This moves 3 const keywords in OpenFileDescription::tty() to make them
consistent with the 'const placement' rule in the style guide.
This commit is contained in:
brody-qq 2024-07-17 01:54:11 +01:00 committed by Nico Weber
parent c04f240398
commit 416875f952
2 changed files with 3 additions and 3 deletions

View file

@ -280,11 +280,11 @@ bool OpenFileDescription::is_tty() const
return m_file->is_tty();
}
const TTY* OpenFileDescription::tty() const
TTY const* OpenFileDescription::tty() const
{
if (!is_tty())
return nullptr;
return static_cast<const TTY*>(m_file.ptr());
return static_cast<TTY const*>(m_file.ptr());
}
TTY* OpenFileDescription::tty()

View file

@ -73,7 +73,7 @@ public:
Device* device();
bool is_tty() const;
const TTY* tty() const;
TTY const* tty() const;
TTY* tty();
bool is_inode_watcher() const;