LibMarkdown: Make LineIterator::operator- take a const reference
This commit is contained in:
parent
ccab25e54e
commit
416d6ab6c8
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/416d6ab6c8 Pull-request: https://github.com/SerenityOS/serenity/pull/18535 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/MacDue
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
return copy;
|
||||
}
|
||||
|
||||
ptrdiff_t operator-(LineIterator other) const { return m_iterator - other.m_iterator; }
|
||||
ptrdiff_t operator-(LineIterator const& other) const { return m_iterator - other.m_iterator; }
|
||||
|
||||
FakePtr<StringView> operator->() const { return FakePtr<StringView>(operator*()); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue