use const_cast<QWorkArea*> instead of C-style cast

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13673 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-04-13 20:44:38 +00:00
parent 544d542c7d
commit e2ddbdca5c

View File

@ -230,10 +230,8 @@ void QWorkArea::adjustViewWithScrollBar(int action)
void QWorkArea::haveSelection(bool own) const
{
// static_cast is not possible here
// wa_ptr = static_cast<QWorkArea*>(this);
/// \todo ask X11 and MAC devels why this wa_ptr is useful.
wa_ptr = (QWorkArea*)(this);
wa_ptr = const_cast<QWorkArea*>(this);
if (!QApplication::clipboard()->supportsSelection())
return;