0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / TDF / TDF_CopyTool.cxx
index 295fcc6..18a662c 100644 (file)
@@ -194,8 +194,7 @@ void TDF_CopyTool::CopyAttributes
        if (tAtt->IsInstance(sAtt->DynamicType()))
          aAttMap.Bind(sAtt,tAtt);
        else
-         Standard_TypeMismatch::Raise
-           ("TDF_CopyTool: Cannot paste to a different type attribute.");
+         throw Standard_TypeMismatch("TDF_CopyTool: Cannot paste to a different type attribute.");
       }
     }
   }