reuse Clear() instead of duplicating its code in Close()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2dfa1d9e11
commit
3ae00f5b57
@ -268,9 +268,7 @@ wxTextFileType wxTextBuffer::GuessType() const
|
||||
|
||||
bool wxTextBuffer::Close()
|
||||
{
|
||||
m_aTypes.Clear();
|
||||
m_aLines.Clear();
|
||||
m_nCurLine = 0;
|
||||
Clear();
|
||||
m_isOpened = false;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user