Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided with OCCT 7.0. See https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form and https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019 for why this is necessary for OCCT >= 7.1
This commit is contained in:
@@ -140,7 +140,7 @@ MeasureType Measurement::getType()
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
std::stringstream errorMsg;
|
||||
Handle_Standard_Failure e = Standard_Failure::Caught();
|
||||
Handle(Standard_Failure) e = Standard_Failure::Caught();
|
||||
errorMsg << "Measurement - getType - " << e->GetMessageString() << std::endl;
|
||||
throw Base::Exception(e->GetMessageString());
|
||||
}
|
||||
@@ -222,7 +222,7 @@ TopoDS_Shape Measurement::getShape(App::DocumentObject *obj , const char *subNam
|
||||
refSubShape = refShape.getSubShape(subName);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
Handle_Standard_Failure e = Standard_Failure::Caught();
|
||||
Handle(Standard_Failure) e = Standard_Failure::Caught();
|
||||
throw Base::Exception(e->GetMessageString());
|
||||
}
|
||||
return refSubShape;
|
||||
|
||||
Reference in New Issue
Block a user