mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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 ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
|
||||
public DocIterator
|
||||
class ParIterator : public DocIterator
|
||||
{
|
||||
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) {}
|
||||
///
|
||||
@ -87,13 +78,11 @@ ParIterator par_iterator_end(Inset & inset);
|
||||
//bool operator!=(ParIterator const & it1, ParIterator const & it2);
|
||||
|
||||
|
||||
class ParConstIterator : public std::iterator<std::forward_iterator_tag,
|
||||
Paragraph>,
|
||||
public DocIterator
|
||||
class ParConstIterator : public DocIterator
|
||||
{
|
||||
public:
|
||||
///
|
||||
ParConstIterator(Buffer const * buf)
|
||||
ParConstIterator(Buffer const * buf)
|
||||
: DocIterator(const_cast<Buffer *>(buf)) {}
|
||||
///
|
||||
ParConstIterator(ParConstIterator const & pi)
|
||||
|
Loading…
Reference in New Issue
Block a user