]> git.lyx.org Git - lyx.git/commitdiff
remove two *& and a useless cast
authorAndré Pönitz <poenitz@gmx.net>
Tue, 29 Apr 2003 14:10:13 +0000 (14:10 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 29 Apr 2003 14:10:13 +0000 (14:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6882 a592a061-630c-0410-9148-cb99ea01b6c8

src/undo_funcs.C

index 4267e65b8377d8094dea84d268f1f299ba07ee14..ddda43f5799f3dbc6734bd323f99a8f4fa1d1fa0 100644 (file)
@@ -323,7 +323,7 @@ bool createUndo(BufferView * bv, Undo::undo_kind kind,
        // create a new Undo
        Paragraph * undopar;
 
        // create a new Undo
        Paragraph * undopar;
 
-       Paragraph * start = const_cast<Paragraph *>(first);
+       Paragraph * start = first;
        Paragraph * end = 0;
 
        if (behind)
        Paragraph * end = 0;
 
        if (behind)
@@ -421,7 +421,7 @@ bool textUndo(BufferView * bv)
                if (first) {
                        shared_ptr<Undo> u;
                        if (createUndo(bv, undo->kind, first,
                if (first) {
                        shared_ptr<Undo> u;
                        if (createUndo(bv, undo->kind, first,
-                               &*b->getParFromID(undo->number_of_behind_par), u))
+                               b->getParFromID(undo->number_of_behind_par), u))
                                b->redostack.push(u);
                }
        }
                                b->redostack.push(u);
                }
        }
@@ -481,7 +481,7 @@ void setUndo(BufferView * bv, Undo::undo_kind kind,
 {
        if (!undo_frozen) {
                shared_ptr<Undo> u;
 {
        if (!undo_frozen) {
                shared_ptr<Undo> u;
-               if (createUndo(bv, kind, &*first, &*behind, u))
+               if (createUndo(bv, kind, first, behind, u))
                        bv->buffer()->undostack.push(u);
                bv->buffer()->redostack.clear();
        }
                        bv->buffer()->undostack.push(u);
                bv->buffer()->redostack.clear();
        }
@@ -492,7 +492,7 @@ void setRedo(BufferView * bv, Undo::undo_kind kind,
             ParagraphList::iterator first, ParagraphList::iterator behind)
 {
        shared_ptr<Undo> u;
             ParagraphList::iterator first, ParagraphList::iterator behind)
 {
        shared_ptr<Undo> u;
-       if (createUndo(bv, kind, &*first, &*behind, u))
+       if (createUndo(bv, kind, first, behind, u))
                bv->buffer()->redostack.push(u);
 }
 
                bv->buffer()->redostack.push(u);
 }