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();
This commit is contained in:
eap 2007-05-21 07:31:57 +00:00
parent 645aebdeb7
commit d963823e09

View File

@ -43,19 +43,12 @@ namespace GEOM
TCollection_AsciiString aDescr; TCollection_AsciiString aDescr;
if ( myAppend ) if ( myAppend )
aDescr = myFunction->GetDescription() + "\n\t"; aDescr = myFunction->GetDescription() + "\n\t";
aDescr += (char *)myStream.str().c_str(); std::string aString = myStream.str();
aDescr += (char *)aString.c_str();
myFunction->SetDescription( aDescr ); 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) TPythonDump& TPythonDump::operator<< (long int theArg)
{ {
myStream<<theArg; myStream<<theArg;