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:
Thiago Macieira 2018-06-16 06:06:17 -07:00
parent 0424118abd
commit f2610e8d76
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}