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:
@@ -90,7 +90,7 @@ int Part::ImportIgesParts(App::Document *pcDoc, const char* FileName)
|
||||
|
||||
#if 1
|
||||
std::string aName = fi.fileNamePure();
|
||||
Handle_Message_ProgressIndicator pi = new ProgressIndicator(100);
|
||||
Handle(Message_ProgressIndicator) pi = new ProgressIndicator(100);
|
||||
pi->NewScope(100, "Reading IGES file...");
|
||||
pi->Show();
|
||||
aReader.WS()->MapReader()->SetProgress(pi);
|
||||
@@ -137,7 +137,7 @@ int Part::ImportIgesParts(App::Document *pcDoc, const char* FileName)
|
||||
builder.MakeCompound(comp);
|
||||
|
||||
// get all entities
|
||||
Handle_TColStd_HSequenceOfTransient aRootList=aReader.GiveList("xst-transferrable-roots");
|
||||
Handle(TColStd_HSequenceOfTransient) aRootList=aReader.GiveList("xst-transferrable-roots");
|
||||
Base::SequencerLauncher seq("Reading IGES file...", aRootList->Length());
|
||||
Standard_Integer j;
|
||||
for (j=1; j<=aRootList->Length(); j++) {
|
||||
|
||||
Reference in New Issue
Block a user