0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Graphic3d / Graphic3d_Texture1D.cxx
index 66b20c9..7854882 100644 (file)
@@ -89,7 +89,7 @@ TCollection_AsciiString Graphic3d_Texture1D::TextureName (const Standard_Integer
 {
   if (theRank < 1 || theRank > NumberOfTextures())
   {
-    Standard_OutOfRange::Raise ("BAD index of texture");
+    throw Standard_OutOfRange("BAD index of texture");
   }
 
   TCollection_AsciiString aFileName (NameOfTexture_to_FileName[theRank - 1]);