Add a few 'const's.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8176 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-12-01 23:04:36 +00:00
parent 709d732f71
commit 4e56732c89

View File

@ -107,24 +107,24 @@ void QContentPane::mousePressEvent(QMouseEvent * e)
return;
}
FuncRequest cmd(LFUN_MOUSE_PRESS, e->x(), e->y(),
q_button_state(e->button()));
FuncRequest const cmd(LFUN_MOUSE_PRESS, e->x(), e->y(),
q_button_state(e->button()));
wa_->dispatch(cmd);
}
void QContentPane::mouseReleaseEvent(QMouseEvent * e)
{
FuncRequest cmd(LFUN_MOUSE_RELEASE, e->x(), e->y(),
q_button_state(e->button()));
FuncRequest const cmd(LFUN_MOUSE_RELEASE, e->x(), e->y(),
q_button_state(e->button()));
wa_->dispatch(cmd);
}
void QContentPane::mouseMoveEvent(QMouseEvent * e)
{
FuncRequest cmd
(LFUN_MOUSE_MOTION, e->x(), e->y(), q_motion_state(e->state()));
FuncRequest const cmd(LFUN_MOUSE_MOTION, e->x(), e->y(),
q_motion_state(e->state()));
wa_->dispatch(cmd);
}