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:
parent
37361821dd
commit
caa9daf59e
2 changed files with 10 additions and 10 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue