Browse Source

LibMarkdown: Make LineIterator::operator- take a const reference

Maciej 2 years ago
parent
commit
416d6ab6c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibMarkdown/LineIterator.h

+ 1 - 1
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*()); }