forked from qt-creator/qt-creator
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user