]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeBoolean.cpp
Salome HOME
Extension of Parameters interface: to set/get double values of results
[modules/shaper.git] / src / Model / Model_AttributeBoolean.cpp
index f7111f127c63aaabd88ce7b50576a2def0851ec7..666b8bb232cbfb5be1e174d33039a3de8f804bab 100644 (file)
@@ -10,7 +10,7 @@
 
 void Model_AttributeBoolean::setValue(bool theValue)
 {
-  Standard_Boolean aValue = theValue ? Standard_True : Standard_False;
+  Standard_Integer aValue = theValue ? 1 : 0;
   if (!myIsInitialized || myBool->Get() != aValue) {
     if (myBool.IsNull())
       myBool = TDataStd_Integer::Set(myLab, 0);
@@ -21,7 +21,7 @@ void Model_AttributeBoolean::setValue(bool theValue)
 
 bool Model_AttributeBoolean::value()
 {
-  return myIsInitialized && myBool->Get() == Standard_True ;
+  return myIsInitialized && myBool->Get() == 1;
 }
 
 Model_AttributeBoolean::Model_AttributeBoolean(TDF_Label& theLabel)