]> git.saurik.com Git - wxWidgets.git/commitdiff
return wxString from wxTextBuffer::GetName()
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jun 2007 13:54:23 +0000 (13:54 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jun 2007 13:54:23 +0000 (13:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/textbuf.h

index f768a5632471fbc2f11fd508fbc9fa5b6b49f0c5..fae3b1209520107e4a1448117d05e0a0b0f56e0d 100644 (file)
@@ -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
     // ----------------