0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / samples / mfc / standard / 06_Ocaf / src / TOcafFunction_BoxDriver.cxx
index 3a2c35d..09f0069 100755 (executable)
@@ -130,7 +130,7 @@ const Handle(TOcafFunction_BoxDriver) TOcafFunction_BoxDriver::DownCast(const Ha
 
   if (!AnObject.IsNull()) {
      if (AnObject->IsKind(STANDARD_TYPE(TOcafFunction_BoxDriver))) {
-       _anOtherObject = Handle(TOcafFunction_BoxDriver)((Handle(TOcafFunction_BoxDriver)&)AnObject);
+       _anOtherObject = Handle(TOcafFunction_BoxDriver)::DownCast (AnObject);
      }
   }