mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Simplify operator== for ParConstIterator
Comment out it while it is unused.
This commit is contained in:
parent
589e780e15
commit
437fef65aa
@ -134,14 +134,13 @@ ParagraphList const & ParConstIterator::plist() const
|
||||
return text()->paragraphs();
|
||||
}
|
||||
|
||||
#if 0
|
||||
bool operator==(ParConstIterator const & iter1, ParConstIterator const & iter2)
|
||||
{
|
||||
DocIterator const * dit1 = &iter1;
|
||||
DocIterator const * dit2 = &iter2;
|
||||
return *dit1 == *dit2;
|
||||
return static_cast<DocIterator const &>(iter1) == static_cast<DocIterator const &>(iter2);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
bool operator!=(ParConstIterator const & iter1, ParConstIterator const & iter2)
|
||||
{
|
||||
return !(iter1 == iter2);
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
ParagraphList const & plist() const;
|
||||
};
|
||||
|
||||
bool operator==(ParConstIterator const & it1, ParConstIterator const & it2);
|
||||
//bool operator==(ParConstIterator const & it1, ParConstIterator const & it2);
|
||||
|
||||
//bool operator!=(ParConstIterator const & it1, ParConstIterator const & it2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user