]> git.lyx.org Git - features.git/commitdiff
compile fix
authorAlfredo Braunstein <abraunst@lyx.org>
Tue, 4 Nov 2003 08:07:07 +0000 (08:07 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Tue, 4 Nov 2003 08:07:07 +0000 (08:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8027 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/PosIterator.C
src/PosIterator.h

index 398b7bc629f8047e91c7b22b29164215d7c23785..3a2dc400d2973fe3410b44b670a53f9173297c8f 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-04  Alfredo Braunstein  <abraunst@libero.it>
+
+       * PosIterator.[Ch]: compile fix 
+
 2003-11-04  Alfredo Braunstein  <abraunst@libero.it>
 
        * text.C (cursorPar): deactivate the cursor cache
index 61c0ec70911367b7bbc7de089de9cfb3bf3f7262..59ff597d8ec593ff717052c791f4f0e8e119b6f0 100644 (file)
@@ -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();
index 9d77cce44773363faf6b4eb0f1aa4e93e363599d..e42ddb4681547f737ec000f0d8e7fb5cdff65826 100644 (file)
@@ -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);