Skip to content
Snippets Groups Projects
Commit edd424d1 authored by Samuel Rødal's avatar Samuel Rødal Committed by Jørgen Lind
Browse files

Fixed warnings in qwidget-compositor.


Change-Id: I22f12e2d78f2951e1c1c5a3b2c05794f0c26abb6
Reviewed-by: default avatarJørgen Lind <jorgen.lind@nokia.com>
parent 3c0054d2
No related branches found
No related tags found
Loading
......@@ -70,13 +70,13 @@ class QWidgetCompositor : public QWidget, public WaylandCompositor
public:
QWidgetCompositor()
: WaylandCompositor(windowHandle())
, m_moveSurface(0)
, m_dragSourceSurface(0)
#ifdef QT_COMPOSITOR_WAYLAND_GL
, m_surfaceCompositorFbo(0)
, m_textureBlitter(0)
, m_textureCache(0)
#endif
, m_moveSurface(0)
, m_dragSourceSurface(0)
{
enableSubSurfaceExtension();
setMouseTracking(true);
......@@ -307,7 +307,7 @@ protected:
return;
}
QPointF local;
if (WaylandSurface *surface = surfaceAt(e->pos(), &local))
if (surfaceAt(e->pos(), &local))
defaultInputDevice()->sendMouseMoveEvent(local.toPoint(),pos());
}
......@@ -326,7 +326,7 @@ protected:
return;
}
QPointF local;
if (WaylandSurface *surface = surfaceAt(e->pos(), &local))
if (surfaceAt(e->pos(), &local))
defaultInputDevice()->sendMouseReleaseEvent(e->button(), local.toPoint(), e->pos());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment