BufferIterator: use default operator=
This commit is contained in:
parent
939dc0fa8e
commit
1ede3f6b13
|
@ -42,7 +42,6 @@ public:
|
||||||
|
|
||||||
BufferIterator() : m_buffer(nullptr) {}
|
BufferIterator() : m_buffer(nullptr) {}
|
||||||
BufferIterator(const Buffer& buffer, BufferCoord coord);
|
BufferIterator(const Buffer& buffer, BufferCoord coord);
|
||||||
BufferIterator& operator=(const BufferIterator& iterator);
|
|
||||||
|
|
||||||
bool operator== (const BufferIterator& iterator) const;
|
bool operator== (const BufferIterator& iterator) const;
|
||||||
bool operator!= (const BufferIterator& iterator) const;
|
bool operator!= (const BufferIterator& iterator) const;
|
||||||
|
|
|
@ -28,13 +28,6 @@ inline bool BufferIterator::is_valid() const
|
||||||
column() == m_buffer->m_lines.back().length()));
|
column() == m_buffer->m_lines.back().length()));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BufferIterator& BufferIterator::operator=(const BufferIterator& iterator)
|
|
||||||
{
|
|
||||||
m_buffer = iterator.m_buffer;
|
|
||||||
m_coord = iterator.m_coord;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool BufferIterator::operator==(const BufferIterator& iterator) const
|
inline bool BufferIterator::operator==(const BufferIterator& iterator) const
|
||||||
{
|
{
|
||||||
assert(m_buffer == iterator.m_buffer);
|
assert(m_buffer == iterator.m_buffer);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user