fix enum cast warnings on clang

This commit is contained in:
karroffel 2018-10-04 09:17:59 +02:00
parent 171be91804
commit a0f206aae8
11 changed files with 20 additions and 20 deletions

View file

@ -2235,13 +2235,13 @@ String Control::_get_tooltip() const {
void Control::set_focus_neighbour(Margin p_margin, const NodePath &p_neighbour) {
ERR_FAIL_INDEX(p_margin, 4);
ERR_FAIL_INDEX((int)p_margin, 4);
data.focus_neighbour[p_margin] = p_neighbour;
}
NodePath Control::get_focus_neighbour(Margin p_margin) const {
ERR_FAIL_INDEX_V(p_margin, 4, NodePath());
ERR_FAIL_INDEX_V((int)p_margin, 4, NodePath());
return data.focus_neighbour[p_margin];
}