git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4242
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void Skip_Comment(wxInputStream &stream)
{
- wxString line;
wxTextInputStream text_stream(stream);
if (stream.Peek()==wxT('#'))
{
- text_stream >> line;
+ text_stream.ReadLine();
Skip_Comment(stream);
}
}
{
wxUint32 width, height;
wxUint16 maxval;
- wxString line;
char c(0);
image->Destroy();
return FALSE;
}
- text_stream >> line; // for the \n
+ text_stream.ReadLine(); // for the \n
Skip_Comment(buf_stream);
text_stream >> width >> height ;
Skip_Comment(buf_stream);