mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
remove two *& and a useless cast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6882 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
653eaace76
commit
a510a0265f
@ -323,7 +323,7 @@ bool createUndo(BufferView * bv, Undo::undo_kind kind,
|
||||
// create a new Undo
|
||||
Paragraph * undopar;
|
||||
|
||||
Paragraph * start = const_cast<Paragraph *>(first);
|
||||
Paragraph * start = first;
|
||||
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,
|
||||
&*b->getParFromID(undo->number_of_behind_par), u))
|
||||
b->getParFromID(undo->number_of_behind_par), 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 (createUndo(bv, kind, &*first, &*behind, u))
|
||||
if (createUndo(bv, kind, first, behind, u))
|
||||
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;
|
||||
if (createUndo(bv, kind, &*first, &*behind, u))
|
||||
if (createUndo(bv, kind, first, behind, u))
|
||||
bv->buffer()->redostack.push(u);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user