Fix build in C++0x mode
authorBernhard Rosenkraenzer <bero@arklinux.ch>
Mon, 30 May 2011 09:31:42 +0000 (11:30 +0159)
committerQt Continuous Integration System <qt-info@nokia.com>
Tue, 31 May 2011 15:46:40 +0000 (17:46 +0200)
commit15871d606a0a85cfcd2b68b95c0891165f61e402
tree569c6db1dabde4ef05149402a79b8610204e4942
parenta8814fcb697893f6ab151342727ea0867f6fec21
Fix build in C++0x mode

This fixes compiler errors (gcc 4.6 -std=gnu++0x on x86_64 Linux):

embedded/qwslock.cpp: In function `bool forceLock(int, int, int)':
embedded/qwslock.cpp:121:39: error: narrowing conversion of `semNum'
        from `int' to `short unsigned int' inside { } [-fpermissive]

(and equivalent errors in other lines/files)

See
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf
Section 8.5.4/6

Change-Id: I2cbac5482b87f33287a416af5a5c9bde621720bc
Reviewed-By: Olivier Goffart
Merge-Request: 1240
Reviewed-on: http://codereview.qt.nokia.com/275
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/gui/embedded/qmousepc_qws.cpp
src/gui/embedded/qwslock.cpp
src/gui/text/qfontdatabase.cpp