diff options
author | Kevin Funk <kfunk@kde.org> | 2017-09-24 23:55:04 +0200 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2017-09-26 15:45:33 +0000 |
commit | 064feb4fd76e6adbfcafe449d6ae7f52834c538a (patch) | |
tree | 5a9f20aced2da3e4cc6055cae7156e121f4210d0 /src/compositor/compositor_api/qwaylandpointer.cpp | |
parent | 62c058f83add9f559f09cf74bc50f721ed75d76a (diff) |
Replace Q_NULLPTR with nullptr
Change-Id: I9699a957430b8d3574ce29acb91b7ada9ea6209b
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandpointer.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandpointer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compositor/compositor_api/qwaylandpointer.cpp b/src/compositor/compositor_api/qwaylandpointer.cpp index 267b5d980..d1f3991ae 100644 --- a/src/compositor/compositor_api/qwaylandpointer.cpp +++ b/src/compositor/compositor_api/qwaylandpointer.cpp @@ -75,7 +75,7 @@ void QWaylandPointerPrivate::pointer_set_cursor(wl_pointer::Resource *resource, Q_UNUSED(serial); if (!surface) { - seat->cursorSurfaceRequest(Q_NULLPTR, 0, 0); + seat->cursorSurfaceRequest(nullptr, 0, 0); return; } @@ -203,7 +203,7 @@ void QWaylandPointer::sendMouseMoveEvent(QWaylandView *view, const QPointF &loca { Q_D(QWaylandPointer); if (view && (!view->surface() || view->surface()->isCursorSurface())) - view = Q_NULLPTR; + view = nullptr; d->seat->setMouseFocus(view); d->localPosition = localPos; d->spacePosition = outputSpacePos; @@ -314,7 +314,7 @@ struct wl_resource *QWaylandPointer::focusResource() const { Q_D(const QWaylandPointer); if (!d->focusResource) - return Q_NULLPTR; + return nullptr; return d->focusResource; } @@ -371,7 +371,7 @@ void QWaylandPointer::focusDestroyed(void *data) Q_UNUSED(data) d->focusDestroyListener.reset(); - d->seat->setMouseFocus(Q_NULLPTR); + d->seat->setMouseFocus(nullptr); d->focusResource = 0; d->buttonCount = 0; } |