X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..c698eae5a875ca973df44add1ad67ec69a5754ba:/include/wx/textbuf.h diff --git a/include/wx/textbuf.h b/include/wx/textbuf.h index c67269c7e3..71a72d4c70 100644 --- a/include/wx/textbuf.h +++ b/include/wx/textbuf.h @@ -145,6 +145,9 @@ public: // delete one line void RemoveLine(size_t n) { m_aLines.RemoveAt(n); m_aTypes.RemoveAt(n); } + // remove all lines + void Clear() { m_aLines.Clear(); m_nCurLine = 0; } + // change the buffer (default argument means "don't change type") // possibly in another format bool Write(wxTextFileType typeNew = wxTextFileType_None, @@ -158,7 +161,7 @@ protected: // ----- // default ctor, use Open(string) - wxTextBuffer() { } + wxTextBuffer() { m_isOpened = false; } // ctor from filename wxTextBuffer(const wxString& strBufferName);