From 71fd67cca786371346fd740121a5810224fe8e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 10 Sep 2015 09:45:31 +0200 Subject: [PATCH] [server] Move static methods into anonymous namespace --- src/wayland/seat_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index bb2f4e1f82..dd493e2c4b 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -164,6 +164,7 @@ SeatInterface::Private *SeatInterface::Private::cast(wl_resource *r) return r ? reinterpret_cast(wl_resource_get_user_data(r)) : nullptr; } +namespace { template static T *interfaceForSurface(SurfaceInterface *surface, const QVector &interfaces) @@ -179,6 +180,7 @@ T *interfaceForSurface(SurfaceInterface *surface, const QVector &interfaces) } return nullptr; } +} PointerInterface *SeatInterface::Private::pointerForSurface(SurfaceInterface *surface) const { @@ -532,6 +534,7 @@ QPointF SeatInterface::focusedPointerSurfacePosition() const return d->globalPointer.focus.offset; } +namespace { static quint32 qtToWaylandButton(Qt::MouseButton button) { static const QHash s_buttons({ @@ -555,6 +558,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button) }); return s_buttons.value(button, 0); } +} bool SeatInterface::isPointerButtonPressed(Qt::MouseButton button) const {