Move trivial constructors into header. Remove unimplemented one.

This commit is contained in:
Richard Kimberly Heck 2020-11-06 11:23:52 -05:00
parent 5887601f68
commit 5bd498c56d
2 changed files with 10 additions and 32 deletions

View File

@ -26,15 +26,6 @@ namespace lyx {
//
//////////////////////////////////////////////////////////////////////////
ParIterator::ParIterator(DocIterator const & dit)
: DocIterator(dit)
{}
ParIterator::ParIterator(ParIterator const & pi)
: DocIterator(DocIterator(pi))
{}
ParIterator par_iterator_begin(Inset & inset)
{
@ -113,21 +104,6 @@ ParagraphList & ParIterator::plist() const
//////////////////////////////////////////////////////////////////////////
ParConstIterator::ParConstIterator(Buffer const * buf)
: DocIterator(const_cast<Buffer *>(buf))
{}
ParConstIterator::ParConstIterator(DocIterator const & dit)
: DocIterator(dit)
{}
ParConstIterator::ParConstIterator(ParConstIterator const & pi)
: DocIterator(DocIterator(pi))
{}
void ParConstIterator::push_back(Inset const & inset)
{
DocIterator::push_back(CursorSlice(const_cast<Inset &>(inset)));

View File

@ -39,13 +39,12 @@ public:
///
///
ParIterator(Buffer * buf) : DocIterator(buf) {}
///
ParIterator(Buffer * buf, Inset &, pit_type pit);
ParIterator(ParIterator const & pi) :
DocIterator(DocIterator(pi)) {}
///
ParIterator(ParIterator const &);
///
explicit ParIterator(DocIterator const &);
explicit ParIterator(DocIterator const & dit) :
DocIterator(dit) {}
/// This really should be implemented...
//ParIterator & operator=(ParIterator const &);
@ -94,11 +93,14 @@ class ParConstIterator : public std::iterator<std::forward_iterator_tag,
{
public:
///
ParConstIterator(Buffer const * buf);
ParConstIterator(Buffer const * buf)
: DocIterator(const_cast<Buffer *>(buf)) {}
///
ParConstIterator(ParConstIterator const &);
ParConstIterator(ParConstIterator const & pi)
: DocIterator(DocIterator(pi)) {}
///
explicit ParConstIterator(DocIterator const &);
explicit ParConstIterator(DocIterator const & dit)
: DocIterator(dit) {}
///
void push_back(Inset const &);