mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03: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:
@@ -33,7 +33,7 @@ IGESBasic_ExternalRefFileIndex::IGESBasic_ExternalRefFileIndex () { }
|
||||
{
|
||||
if (aNameArray->Lower() != 1 || allEntities->Lower() != 1 ||
|
||||
aNameArray->Length() != allEntities->Length())
|
||||
Standard_DimensionMismatch::Raise("IGESBasic_ExternalRefFileIndex: Init");
|
||||
throw Standard_DimensionMismatch("IGESBasic_ExternalRefFileIndex: Init");
|
||||
|
||||
theNames = aNameArray;
|
||||
theEntities = allEntities;
|
||||
|
@@ -31,7 +31,7 @@ IGESBasic_ExternalReferenceFile::IGESBasic_ExternalReferenceFile () { }
|
||||
(const Handle(Interface_HArray1OfHAsciiString)& aNameArray)
|
||||
{
|
||||
if (aNameArray->Lower() != 1)
|
||||
Standard_DimensionMismatch::Raise("IGESBasic_ExternalReferenceFile : Init");
|
||||
throw Standard_DimensionMismatch("IGESBasic_ExternalReferenceFile : Init");
|
||||
theNames = aNameArray;
|
||||
InitTypeAndForm(406,12);
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ IGESBasic_Group::IGESBasic_Group () { InitTypeAndForm(402,1); }
|
||||
// ptv and rln September 14, 2000 BUC60743
|
||||
// Protection against empty groups
|
||||
if (!allEntities.IsNull() && (allEntities->Lower() != 1))
|
||||
Standard_DimensionMismatch::Raise("IGESBasic_Group : Init");
|
||||
throw Standard_DimensionMismatch("IGESBasic_Group : Init");
|
||||
theEntities = allEntities;
|
||||
if (FormNumber() == 0) InitTypeAndForm(402,1);
|
||||
}
|
||||
@@ -87,7 +87,7 @@ IGESBasic_Group::IGESBasic_Group () { InitTypeAndForm(402,1); }
|
||||
void IGESBasic_Group::SetUser
|
||||
(const Standard_Integer type, const Standard_Integer form)
|
||||
{
|
||||
if (type <= 5000) Standard_OutOfRange::Raise("IGESBasic_Group::SetUser");
|
||||
if (type <= 5000) throw Standard_OutOfRange("IGESBasic_Group::SetUser");
|
||||
InitTypeAndForm (type,form);
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@ IGESBasic_SingleParent::IGESBasic_SingleParent () { }
|
||||
const Handle(IGESData_HArray1OfIGESEntity)& allChildren)
|
||||
{
|
||||
if (!allChildren.IsNull() && allChildren->Lower() != 1)
|
||||
Standard_DimensionMismatch::Raise("IGESBasic_SingleParent : Init");
|
||||
throw Standard_DimensionMismatch("IGESBasic_SingleParent : Init");
|
||||
theParentEntity = aParentEntity;
|
||||
theChildren = allChildren;
|
||||
theNbParentEntities = nbParentEntities;
|
||||
|
@@ -35,7 +35,7 @@ IGESBasic_SubfigureDef::IGESBasic_SubfigureDef () { }
|
||||
const Handle(IGESData_HArray1OfIGESEntity)& allAssocEntities)
|
||||
{
|
||||
if (!allAssocEntities.IsNull() && allAssocEntities->Lower() != 1)
|
||||
Standard_DimensionMismatch::Raise("IGESBasic_SubfigureDef : Init");
|
||||
throw Standard_DimensionMismatch("IGESBasic_SubfigureDef : Init");
|
||||
theDepth = aDepth;
|
||||
theName = aName;
|
||||
theAssocEntities = allAssocEntities;
|
||||
|
Reference in New Issue
Block a user