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
/**
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.