From e2ddbdca5cda0d7e0323bf7ed90d503e28e67218 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 13 Apr 2006 20:44:38 +0000 Subject: [PATCH] use const_cast instead of C-style cast git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13673 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QWorkArea.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontends/qt4/QWorkArea.C b/src/frontends/qt4/QWorkArea.C index 9d3c654543..b639d8f28f 100644 --- a/src/frontends/qt4/QWorkArea.C +++ b/src/frontends/qt4/QWorkArea.C @@ -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(this); /// \todo ask X11 and MAC devels why this wa_ptr is useful. - wa_ptr = (QWorkArea*)(this); + wa_ptr = const_cast(this); if (!QApplication::clipboard()->supportsSelection()) return;