mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-09 22:28:13 +08:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -56,14 +56,14 @@ StepData_Simple::StepData_Simple (const Handle(StepData_ESDescr)& descr)
|
||||
const StepData_Field& StepData_Simple::Field (const Standard_CString name) const
|
||||
{
|
||||
Standard_Integer num = ESDescr()->Rank (name);
|
||||
if (num == 0) Interface_InterfaceMismatch::Raise("StepData_Simple : Field");
|
||||
if (num == 0) throw Interface_InterfaceMismatch("StepData_Simple : Field");
|
||||
return FieldNum (num);
|
||||
}
|
||||
|
||||
StepData_Field& StepData_Simple::CField (const Standard_CString name)
|
||||
{
|
||||
Standard_Integer num = ESDescr()->Rank (name);
|
||||
if (num == 0) Interface_InterfaceMismatch::Raise("StepData_Simple : Field");
|
||||
if (num == 0) throw Interface_InterfaceMismatch("StepData_Simple : Field");
|
||||
return CFieldNum (num);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user