Fix warning about extra const
qwaylandxdgsurfacev5.cpp:77:97: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] Change-Id: I6efb28c3145047559ec0fffd1538a5ce04f2721b Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
parent
0424118abd
commit
f2610e8d76
@ -76,7 +76,7 @@ QWaylandXdgSurfaceV5::~QWaylandXdgSurfaceV5()
|
||||
void QWaylandXdgSurfaceV5::resize(QWaylandInputDevice *inputDevice, enum wl_shell_surface_resize edges)
|
||||
{
|
||||
// May need some conversion if types get incompatibles, ATM they're identical
|
||||
enum resize_edge const * const arg = reinterpret_cast<enum resize_edge const * const>(&edges);
|
||||
enum resize_edge const * const arg = reinterpret_cast<enum resize_edge const *>(&edges);
|
||||
resize(inputDevice, *arg);
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,7 @@ void QWaylandXdgSurfaceV6::resize(QWaylandInputDevice *inputDevice, zxdg_topleve
|
||||
|
||||
void QWaylandXdgSurfaceV6::resize(QWaylandInputDevice *inputDevice, enum wl_shell_surface_resize edges)
|
||||
{
|
||||
auto xdgEdges = reinterpret_cast<enum zxdg_toplevel_v6_resize_edge const * const>(&edges);
|
||||
auto xdgEdges = reinterpret_cast<enum zxdg_toplevel_v6_resize_edge const *>(&edges);
|
||||
resize(inputDevice, *xdgEdges);
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,7 @@ void QWaylandXdgSurface::resize(QWaylandInputDevice *inputDevice, xdg_toplevel_r
|
||||
|
||||
void QWaylandXdgSurface::resize(QWaylandInputDevice *inputDevice, enum wl_shell_surface_resize edges)
|
||||
{
|
||||
auto xdgEdges = reinterpret_cast<enum xdg_toplevel_resize_edge const * const>(&edges);
|
||||
auto xdgEdges = reinterpret_cast<enum xdg_toplevel_resize_edge const *>(&edges);
|
||||
resize(inputDevice, *xdgEdges);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user