From 3ae00f5b5756cb67631400628acc94dd23fe03d7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Mar 2006 20:43:15 +0000 Subject: [PATCH] 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 --- src/common/textbuf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/textbuf.cpp b/src/common/textbuf.cpp index 2564a4cdbf..1891af5b1b 100644 --- a/src/common/textbuf.cpp +++ b/src/common/textbuf.cpp @@ -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; -- 2.45.2