diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Kernel/FileSystem/OpenFileDescription.h | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Kernel/FileSystem/OpenFileDescription.h')
-rw-r--r-- | Kernel/FileSystem/OpenFileDescription.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/FileSystem/OpenFileDescription.h b/Kernel/FileSystem/OpenFileDescription.h index acc6df00fe..3d0c7b2c94 100644 --- a/Kernel/FileSystem/OpenFileDescription.h +++ b/Kernel/FileSystem/OpenFileDescription.h @@ -42,7 +42,7 @@ public: ErrorOr<off_t> seek(off_t, int whence); ErrorOr<size_t> read(UserOrKernelBuffer&, size_t); - ErrorOr<size_t> write(const UserOrKernelBuffer& data, size_t); + ErrorOr<size_t> write(UserOrKernelBuffer const& data, size_t); ErrorOr<struct stat> stat(); // NOTE: These ignore the current offset of this file description. @@ -66,10 +66,10 @@ public: bool is_directory() const; File& file() { return *m_file; } - const File& file() const { return *m_file; } + File const& file() const { return *m_file; } bool is_device() const; - const Device* device() const; + Device const* device() const; Device* device(); bool is_tty() const; @@ -77,19 +77,19 @@ public: TTY* tty(); bool is_inode_watcher() const; - const InodeWatcher* inode_watcher() const; + InodeWatcher const* inode_watcher() const; InodeWatcher* inode_watcher(); bool is_master_pty() const; - const MasterPTY* master_pty() const; + MasterPTY const* master_pty() const; MasterPTY* master_pty(); InodeMetadata metadata() const; Inode* inode() { return m_inode.ptr(); } - const Inode* inode() const { return m_inode.ptr(); } + Inode const* inode() const { return m_inode.ptr(); } Custody* custody() { return m_custody.ptr(); } - const Custody* custody() const { return m_custody.ptr(); } + Custody const* custody() const { return m_custody.ptr(); } ErrorOr<Memory::Region*> mmap(Process&, Memory::VirtualRange const&, u64 offset, int prot, bool shared); @@ -103,7 +103,7 @@ public: bool is_socket() const; Socket* socket(); - const Socket* socket() const; + Socket const* socket() const; bool is_fifo() const; FIFO* fifo(); |