1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

AK: Use east const style in LexicalPath.{cpp,h}

This commit is contained in:
Max Wipfli 2021-06-29 13:01:56 +02:00 committed by Andreas Kling
parent 37361821dd
commit caa9daf59e
2 changed files with 10 additions and 10 deletions

View file

@ -93,7 +93,7 @@ void LexicalPath::canonicalize()
m_string = builder.to_string();
}
bool LexicalPath::has_extension(const StringView& extension) const
bool LexicalPath::has_extension(StringView const& extension) const
{
return m_string.ends_with(extension, CaseSensitivity::CaseInsensitive);
}
@ -103,7 +103,7 @@ String LexicalPath::canonicalized_path(String path)
return LexicalPath(move(path)).string();
}
String LexicalPath::relative_path(String absolute_path, const String& prefix)
String LexicalPath::relative_path(String absolute_path, String const& prefix)
{
if (!LexicalPath { absolute_path }.is_absolute() || !LexicalPath { prefix }.is_absolute())
return {};