From 416d6ab6c87adab15b098c1db220aabf1673d9e6 Mon Sep 17 00:00:00 2001 From: Maciej Date: Wed, 26 Apr 2023 21:34:15 +0200 Subject: [PATCH] LibMarkdown: Make LineIterator::operator- take a const reference --- Userland/Libraries/LibMarkdown/LineIterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 operator->() const { return FakePtr(operator*()); }