From 214ffcf58defcab3a0f13ad754b95bba1948a826 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Apr 2012 16:07:34 +0000 Subject: [PATCH] Fix wxTextFile::GetLine() documentation. Document both const and non-const overloads of this method instead of having some strange (and non-existent) chimera of the two. Closes #14171. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/textfile.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/interface/wx/textfile.h b/interface/wx/textfile.h index 02bd50d0b9..0cee089cb3 100644 --- a/interface/wx/textfile.h +++ b/interface/wx/textfile.h @@ -190,10 +190,14 @@ public: /** Retrieves the line number @a n from the file. - The returned line may be modified but you shouldn't add line terminator - at the end - this will be done by wxTextFile. + The returned line may be modified when non-const method is used but you + shouldn't add line terminator at the end -- this will be done by + wxTextFile itself. */ - wxString& GetLine(size_t n) const; + //@{ + wxString& GetLine(size_t n); + const wxString& GetLine(size_t n) const; + //@} /** Get the number of lines in the file. -- 2.47.2