0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Expr / Expr_SingleRelation.cxx
index 4a29c10..7690959 100644 (file)
@@ -96,9 +96,7 @@ Standard_Integer Expr_SingleRelation::NbOfSubRelations () const
 
 Handle(Expr_GeneralRelation) Expr_SingleRelation::SubRelation (const Standard_Integer ) const
 {
- Standard_OutOfRange::Raise();
- Handle(Expr_GeneralRelation) bid;
- return bid;
+ throw Standard_OutOfRange();
 }
 
 Standard_Integer Expr_SingleRelation::NbOfSingleRelations() const