summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2023-04-26 21:34:15 +0200
committerSam Atkins <atkinssj@gmail.com>2023-05-05 17:08:40 +0100
commit416d6ab6c87adab15b098c1db220aabf1673d9e6 (patch)
tree79b419e7bed648a55c226da978eb2ebfbe09a4d9 /Userland/Libraries/LibMarkdown
parentccab25e54e115db9349b143c1764a023d1d019a9 (diff)
downloadserenity-416d6ab6c87adab15b098c1db220aabf1673d9e6.zip
LibMarkdown: Make LineIterator::operator- take a const reference
Diffstat (limited to 'Userland/Libraries/LibMarkdown')
-rw-r--r--Userland/Libraries/LibMarkdown/LineIterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/LineIterator.h b/Userland/Libraries/LibMarkdown/LineIterator.h
index 6fdbfd6922..cc76ef04b7 100644
--- a/Userland/Libraries/LibMarkdown/LineIterator.h
+++ b/Userland/Libraries/LibMarkdown/LineIterator.h
@@ -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*()); }