- wxTextOutputStream text_stream( stream );
-
- wxInt32 n = lines.Number();
- text_stream << n << "\n";
-
- wxNode *node = lines.First();
- while (node)
- {
- DoodleLine *line = (DoodleLine *)node->Data();
- text_stream << line->x1 << " " <<
- line->y1 << " " <<
- line->x2 << " " <<
- line->y2 << "\n";
- node = node->Next();
- }
- return TRUE;
+ wxTextOutputStream text_stream( stream );
+
+ wxInt32 n = m_lines.GetCount();
+ text_stream << n << wxT("\n");
+
+ wxList::compatibility_iterator node = m_lines.GetFirst();
+ while (node)
+ {
+ DoodleLine* line = (DoodleLine*)node->GetData();
+ text_stream << line->x1 << wxT(" ") <<
+ line->y1 << wxT(" ") <<
+ line->x2 << wxT(" ") <<
+ line->y2 << wxT("\n");
+ node = node->GetNext();
+ }
+
+ return stream;