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:
ski
2017-02-02 16:35:21 +03:00
committed by apn
parent 0c63f2f8b9
commit 9775fa6110
1146 changed files with 4860 additions and 6183 deletions

View File

@@ -148,7 +148,7 @@ static void BuildPeriodicTangent(
gp_Vec2d a_vector ;
if (PointsArray.Length() < 3) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
if (!TangentFlags.Value(1)) {
@@ -194,7 +194,7 @@ static void BuildTangents(const TColgp_Array1OfPnt2d& PointsArray,
degree = 3 ;
if ( PointsArray.Length() < 3) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
if (PointsArray.Length() == 3) {
degree = 2 ;
@@ -333,7 +333,7 @@ myTangentRequest(Standard_False)
myPoints->Upper()) ;
if (!result) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
BuildParameters(PeriodicFlag,
PointsPtr->Array1(),
@@ -373,7 +373,7 @@ myTangentRequest(Standard_False)
if (PeriodicFlag) {
if ((PointsPtr->Length()) + 1 != ParametersPtr->Length()) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
}
myTangents =
@@ -384,13 +384,13 @@ myTangentRequest(Standard_False)
myPoints->Upper()) ;
if (!result) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
result =
CheckParameters(ParametersPtr->Array1()) ;
if (!result) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
for (ii = myPoints->Lower() ; ii <= myPoints->Upper() ; ii++) {
@@ -414,7 +414,7 @@ void Geom2dAPI_Interpolate::Load(
myTangentFlags = TangentFlagsPtr ;
if (Tangents.Length() != myPoints->Length() ||
TangentFlagsPtr->Length() != myPoints->Length()) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
result =
CheckTangents(Tangents,
@@ -432,7 +432,7 @@ void Geom2dAPI_Interpolate::Load(
myParameters->Array1()) ;
}
else {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
@@ -457,7 +457,7 @@ void Geom2dAPI_Interpolate::Load(const gp_Vec2d& InitialTangent,
myTangentFlags->Array1(),
myTolerance) ;
if (!result) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
ScaleTangents(myPoints->Array1(),
myTangents->ChangeArray1(),
@@ -899,7 +899,7 @@ void Geom2dAPI_Interpolate::PerformNonPeriodic()
const Handle(Geom2d_BSplineCurve)& Geom2dAPI_Interpolate::Curve() const
{
if ( !myIsDone)
StdFail_NotDone::Raise(" ");
throw StdFail_NotDone(" ");
return myCurve;
}