From be2db7308af6f4eb9092c263573c5abf1a40d77d Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 4 Nov 2003 08:07:07 +0000 Subject: [PATCH] compile fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8027 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/PosIterator.C | 8 +------- src/PosIterator.h | 3 --- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 398b7bc629..3a2dc400d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-11-04 Alfredo Braunstein + + * PosIterator.[Ch]: compile fix + 2003-11-04 Alfredo Braunstein * text.C (cursorPar): deactivate the cursor cache diff --git a/src/PosIterator.C b/src/PosIterator.C index 61c0ec7091..59ff597d8e 100644 --- a/src/PosIterator.C +++ b/src/PosIterator.C @@ -38,7 +38,7 @@ PosIterator & PosIterator::operator++() ParagraphList * pl = inset->getParagraphs(p.index); if (pl) { p.index++; - stack_.push(PosIteratorItem(pl)); + stack_.push(PosIteratorItem(pl, pl->begin(), 0)); return *this; } } @@ -126,12 +126,6 @@ PosIterator::PosIterator(ParagraphList * pl, ParagraphList::iterator pit, } -PosIterator::PosIterator(ParagraphList * pl) -{ - stack_.push(PosIteratorItem(pl, pl->begin(), 0)); -} - - PosIterator::PosIterator(BufferView & bv) { LyXText * text = bv.getLyXText(); diff --git a/src/PosIterator.h b/src/PosIterator.h index 9d77cce447..e42ddb4681 100644 --- a/src/PosIterator.h +++ b/src/PosIterator.h @@ -24,8 +24,6 @@ class BufferView; struct PosIteratorItem { - PosIteratorItem(ParagraphList * pl): pl(pl), pit(pl->begin()), - pos(0), index(0) {}; PosIteratorItem(ParagraphList * pl, ParagraphList::iterator pit, lyx::pos_type pos, @@ -43,7 +41,6 @@ class PosIterator public: PosIterator(BufferView & bv); PosIterator(ParIterator & par, lyx::pos_type pos); - PosIterator(ParagraphList * pl); PosIterator(ParagraphList * pl, ParagraphList::iterator pit, lyx::pos_type pos); PosIterator(ParIterator const & parit, lyx::pos_type p); -- 2.39.2