summaryrefslogtreecommitdiff
path: root/AK/LexicalPath.h
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-06-29 13:01:56 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-30 11:13:54 +0200
commitcaa9daf59e82e7299e88d069ef7745b339a0758a (patch)
tree9756250c7a71c0ab60b42b9e0fc3976e48467b3d /AK/LexicalPath.h
parent37361821dd6409bc26fb892d3dde28edeacc9316 (diff)
downloadserenity-caa9daf59e82e7299e88d069ef7745b339a0758a.zip
AK: Use east const style in LexicalPath.{cpp,h}
Diffstat (limited to 'AK/LexicalPath.h')
-rw-r--r--AK/LexicalPath.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/AK/LexicalPath.h b/AK/LexicalPath.h
index e5c3b2d733..7e2b2b7c13 100644
--- a/AK/LexicalPath.h
+++ b/AK/LexicalPath.h
@@ -18,16 +18,16 @@ public:
bool is_valid() const { return m_is_valid; }
bool is_absolute() const { return m_is_absolute; }
- const String& string() const { return m_string; }
+ String const& string() const { return m_string; }
- const String& dirname() const { return m_dirname; }
- const String& basename() const { return m_basename; }
- const String& title() const { return m_title; }
- const String& extension() const { return m_extension; }
+ String const& dirname() const { return m_dirname; }
+ String const& basename() const { return m_basename; }
+ String const& title() const { return m_title; }
+ String const& extension() const { return m_extension; }
- const Vector<String>& parts() const { return m_parts; }
+ Vector<String> const& parts() const { return m_parts; }
- bool has_extension(const StringView&) const;
+ bool has_extension(StringView const&) const;
void append(String const& component);
@@ -59,7 +59,7 @@ private:
template<>
struct Formatter<LexicalPath> : Formatter<StringView> {
- void format(FormatBuilder& builder, const LexicalPath& value)
+ void format(FormatBuilder& builder, LexicalPath const& value)
{
Formatter<StringView>::format(builder, value.string());
}