ModelEditor: fix warnings from MSVC compiler

Change-Id: I4fe87d071fafa16ef2beaee2559dc96d0a10c4e0
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Jochen Becher
2016-01-06 13:05:14 +01:00
parent 3c37941829
commit d33e86a4be

View File

@@ -223,6 +223,9 @@ ILatchable::Action ObjectItem::horizontalLatchAction() const
case RectangularSelectionItem::HandleNone: case RectangularSelectionItem::HandleNone:
return Move; return Move;
} }
// avoid warning from MSVC compiler
QMT_CHECK(false);
return Move;
} }
ILatchable::Action ObjectItem::verticalLatchAction() const ILatchable::Action ObjectItem::verticalLatchAction() const
@@ -242,6 +245,9 @@ ILatchable::Action ObjectItem::verticalLatchAction() const
case RectangularSelectionItem::HandleNone: case RectangularSelectionItem::HandleNone:
return Move; return Move;
} }
// avoid warning from MSVC compiler
QMT_CHECK(false);
return Move;
} }
QList<ILatchable::Latch> ObjectItem::horizontalLatches(ILatchable::Action action, bool grabbedItem) const QList<ILatchable::Latch> ObjectItem::horizontalLatches(ILatchable::Action action, bool grabbedItem) const