mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
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:
parent
c04f240398
commit
416875f952
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue