From: gdd Date: Fri, 18 Feb 2011 09:19:36 +0000 (+0000) Subject: Merge from V6_main X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb64ed8ccf425bbe73dfb0e1007142467bfab407;p=plugins%2Fblsurfplugin.git Merge from V6_main --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 76dc1c6..12951a8 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -188,8 +188,8 @@ static PyMethodDef PyStdOut_methods[] = { }; static PyMemberDef PyStdOut_memberlist[] = { - {(char *)"softspace", T_INT, offsetof(PyStdOut, softspace), 0, - (char *)"flag indicating that a space needs to be printed; used by print"}, + {(char*)"softspace", T_INT, offsetof(PyStdOut, softspace), 0, + (char*)"flag indicating that a space needs to be printed; used by print"}, {NULL} /* Sentinel */ }; @@ -2255,7 +2255,7 @@ bool BLSURFPluginGUI_HypothesisCreator::sizeMapValidationFromEntry(QString myEnt // MESSAGE("Attractor" ); if ((that->mySMPMap[myEntry].count(QRegExp("^ATTRACTOR\\((?:(-?0(\\.\\d*)*|-?[1-9]+\\d*(\\.\\d*)*|-?\\.(\\d)+);){5}(True|False)\\)$")) != 1)) { if (displayError) - SUIT_MessageBox::warning( dlg(),"Definition of attractor : Error" ,"An attractor is defined with the following pattern: ATTRACTOR(xa;ya;za;a;b;True|False)" ); + SUIT_MessageBox::warning( dlg(),"Definition of attractor : Error" ,"An attractor is defined with the following pattern: ATTRACTOR(xa;ya;za;a;b;True|False[;d])" ); return false; } return true; @@ -2290,9 +2290,9 @@ bool BLSURFPluginGUI_HypothesisCreator::sizeMapValidationFromEntry(QString myEnt fflush(stderr); err_description=""; new_stderr=newPyStdOut(err_description); - PySys_SetObject((char *)"stderr", new_stderr); + PySys_SetObject((char*)"stderr", new_stderr); PyErr_Print(); - PySys_SetObject((char *)"stderr", PySys_GetObject((char *)"__stderr__")); + PySys_SetObject((char*)"stderr", PySys_GetObject((char*)"__stderr__")); Py_DECREF(new_stderr); if (displayError) SUIT_MessageBox::warning( dlg(),"Definition of Python Function : Error" ,err_description.c_str() ); @@ -2307,9 +2307,9 @@ bool BLSURFPluginGUI_HypothesisCreator::sizeMapValidationFromEntry(QString myEnt fflush(stderr); err_description=""; new_stderr=newPyStdOut(err_description); - PySys_SetObject((char *)"stderr", new_stderr); + PySys_SetObject((char*)"stderr", new_stderr); PyErr_Print(); - PySys_SetObject((char *)"stderr", PySys_GetObject((char *)"__stderr__")); + PySys_SetObject((char*)"stderr", PySys_GetObject((char*)"__stderr__")); Py_DECREF(new_stderr); if (displayError) SUIT_MessageBox::warning( dlg(),"Python Error" ,err_description.c_str() );