From c28f74fd197a4f80a3c48b8e1ef404834edf570f Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 17 Jun 2020 22:41:34 +0000 Subject: [PATCH] use new style cast in QClipboard::mimeData() Signed-off-by: Ivailo Monev --- src/gui/kernel/qclipboard_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qclipboard_x11.cpp b/src/gui/kernel/qclipboard_x11.cpp index 5a5b14d18..9f42d75a8 100644 --- a/src/gui/kernel/qclipboard_x11.cpp +++ b/src/gui/kernel/qclipboard_x11.cpp @@ -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(this); timer_id = that->startTimer(0); } } -- 2.11.0