OSDN Git Service

use new style cast in QClipboard::mimeData()
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 17 Jun 2020 22:41:34 +0000 (22:41 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 17 Jun 2020 22:41:34 +0000 (22:41 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qclipboard_x11.cpp

index 5a5b14d..9f42d75 100644 (file)
@@ -1190,7 +1190,7 @@ const QMimeData* QClipboard::mimeData(Mode mode) const
             // that way, the data is cached long enough for calls within a single
             // loop/function, but the data doesn't linger around in case the selection
             // changes
-            QClipboard *that = ((QClipboard *) this);
+            QClipboard *that = const_cast<QClipboard *>(this);
             timer_id = that->startTimer(0);
         }
     }