1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

Kernel: Make File::absolute_path() const.

This commit is contained in:
Andreas Kling 2019-06-01 18:56:56 +02:00
parent 00de8b9fc4
commit 2dd9ef6863
16 changed files with 16 additions and 16 deletions

View file

@ -142,7 +142,7 @@ static const char* to_string(SocketRole role)
}
}
String Socket::absolute_path(FileDescriptor& descriptor) const
String Socket::absolute_path(const FileDescriptor& descriptor) const
{
return String::format("socket:%x (role: %s)", this, to_string(descriptor.socket_role()));
}

View file

@ -62,7 +62,7 @@ public:
Lock& lock() { return m_lock; }
virtual String absolute_path(FileDescriptor&) const override;
virtual String absolute_path(const FileDescriptor&) const override;
protected:
Socket(int domain, int type, int protocol);