Salome HOME
projects
/
plugins
/
acisplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed54e1e
)
Switch to standard C++ exception mechanism
author
vsr
<vsr@opencascade.com>
Thu, 16 Nov 2017 11:36:41 +0000
(14:36 +0300)
committer
vsr
<vsr@opencascade.com>
Thu, 16 Nov 2017 11:36:41 +0000
(14:36 +0300)
src/ACISPlugin_IOperations.cxx
patch
|
blob
|
history
diff --git
a/src/ACISPlugin_IOperations.cxx
b/src/ACISPlugin_IOperations.cxx
index 073f58e4dd71d4aba7f66ec1e5bbdd8b3cddaa87..4ae1044dfa2fc59ecc22ea3c761bafd3e3e8c61f 100644
(file)
--- a/
src/ACISPlugin_IOperations.cxx
+++ b/
src/ACISPlugin_IOperations.cxx
@@
-94,9
+94,8
@@
void ACISPlugin_IOperations::ExportACIS( const Handle(GEOM_Object) theOrigi
return;
}
}
return;
}
}
- catch( Standard_Failure ) {
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
- SetErrorCode( aFail->GetMessageString() );
+ catch( Standard_Failure& aFail ) {
+ SetErrorCode( aFail.GetMessageString() );
return;
}
return;
}
@@
-150,9
+149,8
@@
ACISPlugin_IOperations::ImportACIS( const TCollection_AsciiString& theFileName )
// Greate material groups.
//MakeMaterialGroups( anImported, aSeq );
}
// Greate material groups.
//MakeMaterialGroups( anImported, aSeq );
}
- catch( Standard_Failure ) {
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
- SetErrorCode( aFail->GetMessageString() );
+ catch( Standard_Failure& aFail ) {
+ SetErrorCode( aFail.GetMessageString() );
return NULL;
}
return NULL;
}