summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-03-05 08:09:17 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-03-05 08:10:46 +0100
commitedd424d1ed41434f979abe42428ed74c664d59a2 (patch)
treea51046eea26199f4871c672fa955b47ccef8818b
parent3c0054d2e9044c576bd74f31a944c3824231c7d3 (diff)
Fixed warnings in qwidget-compositor.
Change-Id: I22f12e2d78f2951e1c1c5a3b2c05794f0c26abb6 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
-rw-r--r--examples/qwidget-compositor/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp
index 970074cf3..adac4cfa0 100644
--- a/examples/qwidget-compositor/main.cpp
+++ b/examples/qwidget-compositor/main.cpp
@@ -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());
}