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 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,9 +78,7 @@ 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:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user