mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
544d542c7d
commit
e2ddbdca5c
@ -230,10 +230,8 @@ void QWorkArea::adjustViewWithScrollBar(int action)
|
|||||||
|
|
||||||
void QWorkArea::haveSelection(bool own) const
|
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.
|
/// \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())
|
if (!QApplication::clipboard()->supportsSelection())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user