@@ -761,7 +761,7 @@ STEPfile::ReadData1(istream& in)
761761 tmpbuf.set_null ();
762762 SkipInstance (in,tmpbuf);
763763 cout << " ERROR: trying to recover from invalid data. skipping: "
764- << tmpbuf.chars () << endl;
764+ << tmpbuf.c_str () << endl;
765765 ReadTokenSeparator (in);
766766 }
767767
@@ -842,7 +842,7 @@ STEPfile::ReadData1(istream& in)
842842 tmpbuf.set_null ();
843843 SkipInstance (in,tmpbuf);
844844 cout << " ERROR: trying to recover from invalid data. skipping: "
845- << tmpbuf.chars () << endl;
845+ << tmpbuf.c_str () << endl;
846846 ReadTokenSeparator (in);
847847 }
848848 if ( c == ENTITY_NAME_DELIM )
@@ -1284,7 +1284,7 @@ STEPfile::ReadData2 (istream& in)
12841284 tmpbuf.set_null ();
12851285 SkipInstance (in,tmpbuf);
12861286 cout << " ERROR: trying to recover from invalid data. skipping: "
1287- << tmpbuf.chars () << endl;
1287+ << tmpbuf.c_str () << endl;
12881288 ReadTokenSeparator (in);
12891289 }
12901290
@@ -2007,7 +2007,7 @@ ReadEntityError(char c, int i, istream& in)
20072007 STEPwrite (tmp); // STEPwrite writes to a static buffer inside function
20082008 sprintf (errStr,
20092009 " The invalid instance to this point looks like :\n %s\n " ,
2010- tmp.chars () );
2010+ tmp.c_str () );
20112011 _error.AppendToDetailMsg (errStr);
20122012
20132013 _error.AppendToDetailMsg (" data lost looking for end of entity:" );
@@ -2043,7 +2043,7 @@ ReadEntityError(char c, int i, istream& in)
20432043 }
20442044 }
20452045 }
2046- _error.AppendToDetailMsg ( tmp.chars () );
2046+ _error.AppendToDetailMsg ( tmp.c_str () );
20472047 sprintf (errStr, " \n finished reading #%d\n " , STEPfile_id);
20482048 _error.AppendToDetailMsg (errStr);
20492049 return ;
0 commit comments