Skip to content

Commit

Permalink
[IFaceEd] Fixes for linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
mamontov-cpp committed Aug 22, 2016
1 parent 89b9d28 commit 2fb29de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/ifaceed/ifaceed/scripting/layouts/gridbindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ QScriptValue scripting::layouts::parent(
QScriptValue result = engine->newArray(2);
QScriptValue source = engine->newQObject(new scripting::layouts::ScriptableGridCell(g.Grid->MajorId, g.Row, g.Col, e));
result.setProperty(0, source);
result.setProperty(1, QScriptValue(g.Pos));
result.setProperty(1, QScriptValue(static_cast<unsigned int>(g.Pos)));
return result;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/ifaceed/ifaceed/scripting/layouts/scriptablegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ QScriptValue scripting::layouts::ScriptableGrid::findChild(const QScriptValue& o
val = e->newArray(2);
QScriptValue source = e->newQObject(new scripting::layouts::ScriptableGridCell(g->MajorId, c->Row, c->Col, m_scripting));
val.setProperty(0, source);
val.setProperty(1, QScriptValue(res.value().p2()));
val.setProperty(1, QScriptValue(static_cast<unsigned int>(res.value().p2())));
}
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ QScriptValue scripting::layouts::ScriptableGridCell::findChild(const QScriptValu
sad::Maybe<size_t> res = cell->find(maybe_obj.value());
if (res.exists())
{
val = QScriptValue(res.value());
val = QScriptValue(static_cast<unsigned int>(res.value()));
}
}
else
Expand Down

0 comments on commit 2fb29de

Please sign in to comment.