From 4a861c75d5c2cfe531f96a8ecf1cf55c643d719b Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Thu, 3 Dec 2015 21:37:04 +0100 Subject: [PATCH] App: Replaced freecad_dynamic_cast by static_cast. In this case we know the type, and don't check for 0. --- src/App/ObjectIdentifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/ObjectIdentifier.cpp b/src/App/ObjectIdentifier.cpp index 67534bf537..f2ed2e0097 100644 --- a/src/App/ObjectIdentifier.cpp +++ b/src/App/ObjectIdentifier.cpp @@ -574,7 +574,7 @@ void ObjectIdentifier::resolve() const else { /* Document object name not specified, resolve from path */ if (components.size() == 1) { - documentObjectName = String(freecad_dynamic_cast(owner)->getNameInDocument()); + documentObjectName = String(static_cast(owner)->getNameInDocument()); propertyName = components[0].name.getString(); propertyIndex = 0; } @@ -590,7 +590,7 @@ void ObjectIdentifier::resolve() const propertyIndex = 1; } else { - documentObjectName = String(freecad_dynamic_cast(owner)->getNameInDocument()); + documentObjectName = String(static_cast(owner)->getNameInDocument()); propertyName = components[0].name.getString(); propertyIndex = 0; }