From 761684d36210d660315d70c27d366fc2bc9e62cb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Aug 2017 16:06:02 +0200 Subject: Fix implicit cast warnings with clang --- src/gtk2_in_qt5.cpp | 2 +- src/qt5_in_gtk2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gtk2_in_qt5.cpp b/src/gtk2_in_qt5.cpp index e97f4a0..75258b0 100644 --- a/src/gtk2_in_qt5.cpp +++ b/src/gtk2_in_qt5.cpp @@ -88,7 +88,7 @@ wrapper_wrap(SuilWrapper* wrapper, gtk_container_add(GTK_CONTAINER(plug), widget); gtk_widget_show_all(plug); - const WId wid = gtk_plug_get_id((GtkPlug *)plug); + const WId wid = (const WId)gtk_plug_get_id((GtkPlug*)plug); QWindow* window = QWindow::fromWinId(wid); QWidget* container = QWidget::createWindowContainer(window, wrap); QVBoxLayout* layout = new QVBoxLayout(); diff --git a/src/qt5_in_gtk2.cpp b/src/qt5_in_gtk2.cpp index bd7957e..66ee674 100644 --- a/src/qt5_in_gtk2.cpp +++ b/src/qt5_in_gtk2.cpp @@ -89,7 +89,7 @@ suil_qt_wrapper_realize(GtkWidget* w, gpointer data) { SuilQtWrapper* const wrap = SUIL_QT_WRAPPER(w); GtkSocket* const s = GTK_SOCKET(w); - const WId id = gtk_socket_get_id(s); + const WId id = (const WId)gtk_socket_get_id(s); wrap->qembed->winId(); wrap->qembed->windowHandle()->setParent(QWindow::fromWinId(id)); -- cgit v1.2.1