mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
This commit is contained in:
parent
1c92e6ee9d
commit
63b11030f0
102 changed files with 206 additions and 206 deletions
|
@ -48,7 +48,7 @@ struct InodeMetadata {
|
|||
bool may_write(Credentials const&, UseEffectiveIDs = UseEffectiveIDs::Yes) const;
|
||||
bool may_execute(Credentials const&, UseEffectiveIDs = UseEffectiveIDs::Yes) const;
|
||||
|
||||
bool may_read(UserID u, GroupID g, Span<GroupID const> eg) const
|
||||
bool may_read(UserID u, GroupID g, ReadonlySpan<GroupID> eg) const
|
||||
{
|
||||
if (u == 0)
|
||||
return true;
|
||||
|
@ -59,7 +59,7 @@ struct InodeMetadata {
|
|||
return (mode & S_IROTH) == S_IROTH;
|
||||
}
|
||||
|
||||
bool may_write(UserID u, GroupID g, Span<GroupID const> eg) const
|
||||
bool may_write(UserID u, GroupID g, ReadonlySpan<GroupID> eg) const
|
||||
{
|
||||
if (u == 0)
|
||||
return true;
|
||||
|
@ -70,7 +70,7 @@ struct InodeMetadata {
|
|||
return (mode & S_IWOTH) == S_IWOTH;
|
||||
}
|
||||
|
||||
bool may_execute(UserID u, GroupID g, Span<GroupID const> eg) const
|
||||
bool may_execute(UserID u, GroupID g, ReadonlySpan<GroupID> eg) const
|
||||
{
|
||||
if (u == 0)
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue