0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
[occt.git] / src / ShapeProcess / ShapeProcess_Context.cxx
index 4506961..c14b453 100644 (file)
@@ -26,6 +26,8 @@
 #include <TCollection_HAsciiString.hxx>
 
 #include <sys/stat.h>
+IMPLEMENT_STANDARD_RTTIEXT(ShapeProcess_Context,MMgt_TShared)
+
 //=======================================================================
 //function : ShapeProcess_Context
 //purpose  : 
@@ -306,7 +308,7 @@ Standard_Boolean ShapeProcess_Context::GetBoolean (const Standard_CString param,
   if ( myRC.IsNull() ) return Standard_False;
   try {
     OCC_CATCH_SIGNALS
-    val = (Standard_Boolean)myRC->Integer ( MakeName ( myScope, param )->ToCString() );
+    val = myRC->Integer (MakeName (myScope, param)->ToCString()) != 0;
     return Standard_True;
   }
   catch (Standard_Failure) {