Prefer C++-style cast.

Change-Id: Id5e300c2e28bc704cbd1ae0d6022be4db8535429
Reviewed-on: http://codereview.qt.nokia.com/203
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2011-05-30 10:27:29 +02:00
committed by hjk
parent 2cc7bea066
commit 060ca8d1cb

View File

@@ -437,7 +437,7 @@ double TypeDescriptionReader::readNumericBinding(AST::UiScriptBinding *ast)
int TypeDescriptionReader::readIntBinding(AST::UiScriptBinding *ast)
{
double v = readNumericBinding(ast);
int i = (int)v;
int i = static_cast<int>(v);
if (i != v) {
addError(ast->firstSourceLocation(), "Expected integer after colon");