mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Move trivial constructors into header. Remove unimplemented one.
This commit is contained in:
parent
5887601f68
commit
5bd498c56d
@ -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)));
|
||||
|
@ -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 &);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user