From e371214cfa118b86b9a54c8b6b977ca1ec2cd750 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Jul 2016 20:12:53 +0200 Subject: [PATCH] Correct wxString(const char*, size_t) ctor documentation The length passed to this constructor is the number of bytes, i.e. char elements of the given string, not "characters" in the usual sense of the word. --- interface/wx/string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/wx/string.h b/interface/wx/string.h index c4213100fe..59fe620c29 100644 --- a/interface/wx/string.h +++ b/interface/wx/string.h @@ -386,13 +386,13 @@ public: wxString(const char *psz, const wxMBConv& conv); /** - Constructs a string from the first @a nLength character of the string literal @a psz using + Constructs a string from the first @a nLength bytes of the string literal @a psz using the current locale encoding to convert it to Unicode (wxConvLibc). */ wxString(const char *psz, size_t nLength); /** - Constructs a string from the first @a nLength character of the string literal @a psz using + Constructs a string from the first @a nLength bytes of the string literal @a psz using @a conv to convert it Unicode. */ wxString(const char *psz, const wxMBConv& conv, size_t nLength);