mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Get rid of std::iterator
clang's libc++ 13 tells us that it is deprecated in C++17. Fortunately, we do not need it after all.
This commit is contained in:
parent
d99502d915
commit
a29ced5577
@ -25,18 +25,9 @@ class Paragraph;
|
|||||||
class ParagraphList;
|
class ParagraphList;
|
||||||
|
|
||||||
|
|
||||||
class ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
|
class ParIterator : public DocIterator
|
||||||
public DocIterator
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::iterator<std::forward_iterator_tag, Paragraph> StdIt;
|
|
||||||
|
|
||||||
typedef StdIt::value_type value_type;
|
|
||||||
typedef StdIt::difference_type difference_type;
|
|
||||||
typedef StdIt::pointer pointer;
|
|
||||||
typedef StdIt::reference reference;
|
|
||||||
|
|
||||||
///
|
|
||||||
///
|
///
|
||||||
ParIterator(Buffer * buf) : DocIterator(buf) {}
|
ParIterator(Buffer * buf) : DocIterator(buf) {}
|
||||||
///
|
///
|
||||||
@ -87,13 +78,11 @@ ParIterator par_iterator_end(Inset & inset);
|
|||||||
//bool operator!=(ParIterator const & it1, ParIterator const & it2);
|
//bool operator!=(ParIterator const & it1, ParIterator const & it2);
|
||||||
|
|
||||||
|
|
||||||
class ParConstIterator : public std::iterator<std::forward_iterator_tag,
|
class ParConstIterator : public DocIterator
|
||||||
Paragraph>,
|
|
||||||
public DocIterator
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
ParConstIterator(Buffer const * buf)
|
ParConstIterator(Buffer const * buf)
|
||||||
: DocIterator(const_cast<Buffer *>(buf)) {}
|
: DocIterator(const_cast<Buffer *>(buf)) {}
|
||||||
///
|
///
|
||||||
ParConstIterator(ParConstIterator const & pi)
|
ParConstIterator(ParConstIterator const & pi)
|
||||||
|
Loading…
Reference in New Issue
Block a user