Sketcher: Replace dynamic_cast with qobject_cast
This commit is contained in:
committed by
Benjamin Nauck
parent
119dc079c1
commit
c704622605
@@ -201,7 +201,7 @@ void PropertyConstraintListItem::assignProperty(const App::Property* prop)
|
||||
else {
|
||||
// search inside this item
|
||||
if (namedIndex < numNamed) {
|
||||
child = dynamic_cast<PropertyUnitItem*>(this->child(namedIndex));
|
||||
child = qobject_cast<PropertyUnitItem*>(this->child(namedIndex));
|
||||
}
|
||||
|
||||
if (!child) {
|
||||
|
||||
Reference in New Issue
Block a user