Commit 71fd67cc authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Move static methods into anonymous namespace

parent bbfdf3f7
......@@ -164,6 +164,7 @@ SeatInterface::Private *SeatInterface::Private::cast(wl_resource *r)
return r ? reinterpret_cast<SeatInterface::Private*>(wl_resource_get_user_data(r)) : nullptr;
}
namespace {
template <typename T>
static
T *interfaceForSurface(SurfaceInterface *surface, const QVector<T*> &interfaces)
......@@ -179,6 +180,7 @@ T *interfaceForSurface(SurfaceInterface *surface, const QVector<T*> &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<Qt::MouseButton, quint32> 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
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment