]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QWorkArea.C
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QWorkArea.C
index 9d3c654543f78eb48dbe365a3e6281b507febdc1..b639d8f28f3b7e36ba06aa7f0a70f596efa05e49 100644 (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;