Fix narrowing conversion warnings

With this change KWin core is free of narrowing conversion warnings.

SVN_SILENT
icc-effect-5.14.5
Martin Gräßlin 2012-12-27 11:12:03 +01:00
parent a5213c454b
commit 8ea46b7f2d
1 changed files with 2 additions and 2 deletions

View File

@ -633,8 +633,8 @@ void Client::embedClient(Window w, const XWindowAttributes& attr)
const uint32_t cw_values[] = {
0, // back_pixmap
0, // border_pixel
attr.colormap, // colormap
QCursor(Qt::ArrowCursor).handle() // cursor
static_cast<uint32_t>(attr.colormap), // colormap
static_cast<uint32_t>(QCursor(Qt::ArrowCursor).handle()) // cursor
};
const uint32_t cw_mask = XCB_CW_BACK_PIXMAP | XCB_CW_BORDER_PIXEL |