From: pkv Date: Fri, 13 Nov 2009 09:07:28 +0000 (+0000) Subject: Fix the bugs X-Git-Tag: PHASE_17_Part1_V1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7b8e91ea9eba7bf7b45951b50181829c97e07f0;p=modules%2Fkernel.git Fix the bugs --- diff --git a/src/Notebook/SALOME_EvalVariant.cxx b/src/Notebook/SALOME_EvalVariant.cxx index 1e5c25cd6..33a38748f 100755 --- a/src/Notebook/SALOME_EvalVariant.cxx +++ b/src/Notebook/SALOME_EvalVariant.cxx @@ -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) { diff --git a/src/Notebook/SALOME_EvalVariant.hxx b/src/Notebook/SALOME_EvalVariant.hxx index f6177b470..621c7d532 100755 --- a/src/Notebook/SALOME_EvalVariant.hxx +++ b/src/Notebook/SALOME_EvalVariant.hxx @@ -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; //