From: eap Date: Mon, 21 May 2007 07:31:57 +0000 (+0000) Subject: NPAL15983 (EDF PAL 413: Bug when displaying empty groups) X-Git-Tag: V3_2_7~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d963823e092c2d3a1a3904461f4fcef5eeeb30df;p=modules%2Fgeom.git NPAL15983 (EDF PAL 413: Bug when displaying empty groups) - aDescr += (char *)myStream.str().c_str(); + std::string aString = myStream.str(); + aDescr += (char *)aString.c_str(); --- diff --git a/src/GEOM/GEOM_PythonDump.cxx b/src/GEOM/GEOM_PythonDump.cxx index 60940d941..14c84dc8b 100644 --- a/src/GEOM/GEOM_PythonDump.cxx +++ b/src/GEOM/GEOM_PythonDump.cxx @@ -43,19 +43,12 @@ namespace GEOM TCollection_AsciiString aDescr; if ( myAppend ) aDescr = myFunction->GetDescription() + "\n\t"; - aDescr += (char *)myStream.str().c_str(); + std::string aString = myStream.str(); + aDescr += (char *)aString.c_str(); myFunction->SetDescription( aDescr ); } } -// TPythonDump::operator TCollection_AsciiString () const -// { -// if (myCounter == 1) { -// return TCollection_AsciiString ((char *)myStream.str().c_str()); -// } -// return TCollection_AsciiString (); -// } - TPythonDump& TPythonDump::operator<< (long int theArg) { myStream<