0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / NCollection / NCollection_BaseSequence.cxx
index ed4fb9f..4cf81fe 100644 (file)
@@ -216,7 +216,7 @@ void NCollection_BaseSequence::PInsertAfter (const Standard_Integer theIndex,
                                              NCollection_BaseSequence& Other)
 {
   if (theIndex < 0 || theIndex > mySize)
-    Standard_OutOfRange::Raise();
+    throw Standard_OutOfRange();
   if (Other.mySize != 0) {
     if (theIndex == 0) 
       PPrepend (Other);