]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix the bugs
authorpkv <pkv@opencascade.com>
Fri, 13 Nov 2009 09:07:28 +0000 (09:07 +0000)
committerpkv <pkv@opencascade.com>
Fri, 13 Nov 2009 09:07:28 +0000 (09:07 +0000)
src/Notebook/SALOME_EvalVariant.cxx
src/Notebook/SALOME_EvalVariant.hxx

index 1e5c25cd693646d44c3b377004fa91ba723eddca..33a38748f8e318cf91194ba308c7f46f4370e701 100755 (executable)
@@ -431,6 +431,7 @@ double SALOME_EvalVariant::toDouble(bool *ok) const
 //=======================================================================
 RString SALOME_EvalVariant::toString() const
 {
+  bool bOk;
   char buffer[32];
   RString aS;
   //
@@ -439,7 +440,7 @@ RString SALOME_EvalVariant::toString() const
   if (aType == SALOME_EvalVariant_Boolean) {
     int iX;
     //
-    iX=toInt();
+    iX=toInt(&bOk);
     aS= iX? "true" : "false";
   }
   else if (aType == SALOME_EvalVariant_Int) {
index f6177b4709d776974cf179dd8d81eff352be9d1e..621c7d532a32a222ae638a2c0ebbed8eff4fa702 100755 (executable)
@@ -182,9 +182,9 @@ class SALOME_EvalVariant
     };
     //
     bool toBool() const;
-    int  toInt(bool *ok = 0) const;
-    uint toUInt(bool *ok = 0) const;
-    double toDouble(bool *ok = 0) const;
+    int  toInt(bool *ok) const;
+    uint toUInt(bool *ok) const;
+    double toDouble(bool *ok) const;
     RString toString() const;
     SALOME_ListOfEvalVariant toList() const; 
     //