mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 12:07:41 +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:
@@ -301,7 +301,7 @@ class NCollection_DataMap : public NCollection_BaseMap
|
||||
{
|
||||
DataMapNode* p = 0;
|
||||
if (!lookup(theKey, p))
|
||||
Standard_NoSuchObject::Raise("NCollection_DataMap::Find");
|
||||
throw Standard_NoSuchObject("NCollection_DataMap::Find");
|
||||
return p->Value();
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ class NCollection_DataMap : public NCollection_BaseMap
|
||||
{
|
||||
DataMapNode* p = 0;
|
||||
if (!lookup(theKey, p))
|
||||
Standard_NoSuchObject::Raise("NCollection_DataMap::Find");
|
||||
throw Standard_NoSuchObject("NCollection_DataMap::Find");
|
||||
return p->ChangeValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user