Salome HOME
projects
/
plugins
/
xtplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b06b3b
)
Switch to standard C++ exception mechanism
author
vsr
<vsr@opencascade.com>
Thu, 16 Nov 2017 11:37:43 +0000
(14:37 +0300)
committer
vsr
<vsr@opencascade.com>
Thu, 16 Nov 2017 11:37:43 +0000
(14:37 +0300)
src/XTPlugin_IOperations.cxx
patch
|
blob
|
history
diff --git
a/src/XTPlugin_IOperations.cxx
b/src/XTPlugin_IOperations.cxx
index 04839db01c68d9a836c30c7a45921721d9a3d248..8d6a7acee24428205bdeaeafe7b143d347ab3403 100644
(file)
--- a/
src/XTPlugin_IOperations.cxx
+++ b/
src/XTPlugin_IOperations.cxx
@@
-95,9
+95,8
@@
XTPlugin_IOperations::ImportXT( const TCollection_AsciiString& theFileName )
// 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;
}