X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParIterator.h;h=71e5417ddc8a6a1e2006ecdf606065821c7c00d7;hb=1acedf11da79f509da706bc8d6d2f491c9676087;hp=af41cc0744ed91b69f4af2a471ee0de734498423;hpb=6be5a0cf52f03231e18d79189205add56ffbde82;p=lyx.git diff --git a/src/ParIterator.h b/src/ParIterator.h index af41cc0744..71e5417ddc 100644 --- a/src/ParIterator.h +++ b/src/ParIterator.h @@ -45,7 +45,7 @@ public: /// ParIterator(ParIterator const &); /// - ParIterator(DocIterator const &); + explicit ParIterator(DocIterator const &); /// This really should be implemented... //ParIterator & operator=(ParIterator const &); @@ -79,15 +79,15 @@ ParIterator par_iterator_end(Inset & inset); /// -bool operator==(ParIterator const & iter1, ParIterator const & iter2); +//bool operator==(ParIterator const & it1, ParIterator const & it2); -// FIXME: Unfortunately operator!=(ParIterator &, ParIterator &) is implemented with -// operator!=(DocIterator &, DocIterator &) that gives false if the positions -// are different, even if the pars are the same. So ultimately it's a bug in -// operator!=(ParIterator &, ParIterator &) I'd say (nevertheless, I would be -// reluctant to change it, because I fear that some part of the code could rely on -// this "bug". --Alfredo -bool operator!=(ParIterator const & iter1, ParIterator const & iter2); +// FIXME: Unfortunately operator!=(ParIterator &, ParIterator &) is +// implemented with operator!=(DocIterator &, DocIterator &) that gives +// false if the positions are different, even if the pars are the same. +// So ultimately it's a bug in operator!=(ParIterator &, ParIterator &) +// I'd say (nevertheless, I would be reluctant to change it, because I +// fear that some part of the code could rely on this "bug". --Alfredo +//bool operator!=(ParIterator const & it1, ParIterator const & it2); class ParConstIterator : public std::iterator