wxTextFileType GuessType() const;
// get the name of the buffer
- const wxChar *GetName() const { return m_strBufferName.c_str(); }
+ const wxString& GetName() const { return m_strBufferName; }
// add/remove lines
// ----------------
// -----
// default ctor, use Open(string)
- wxTextBuffer() { m_isOpened = false; }
+ wxTextBuffer() { m_nCurLine = 0; m_isOpened = false; }
// ctor from filename
wxTextBuffer(const wxString& strBufferName);