From: Václav Slavík <vslavik@fastmail.fm>
Date: Tue, 19 Jun 2007 13:54:23 +0000 (+0000)
Subject: return wxString from wxTextBuffer::GetName()
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a5398eb9c4119c92ad14395bd12aab99e0563e21

return wxString from wxTextBuffer::GetName()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/textbuf.h b/include/wx/textbuf.h
index f768a56324..fae3b12095 100644
--- a/include/wx/textbuf.h
+++ b/include/wx/textbuf.h
@@ -132,7 +132,7 @@ public:
     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
     // ----------------