X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/docs/latex/wx/tmbconv.tex diff --git a/docs/latex/wx/tmbconv.tex b/docs/latex/wx/tmbconv.tex index 4401bfa99b..b7f5a95568 100644 --- a/docs/latex/wx/tmbconv.tex +++ b/docs/latex/wx/tmbconv.tex @@ -125,7 +125,7 @@ wxCSConv cust(user_encoding); printf("Data: %s\n", (const char*) str.mb_str(cust)); \end{verbatim} -Note: Since mb_str() returns a temporary wxCharBuffer to hold the result +Note: Since mb\_str() returns a temporary wxCharBuffer to hold the result of the conversion, you need to explicitly cast it to const char* if you use it in a vararg context (like with printf). @@ -171,7 +171,7 @@ process_data(tmp_str); \end{verbatim} If a conversion had taken place in cWX2MB (i.e. in a Unicode build), -the buffer will be deallocated as soon as tmp_buf goes out of scope. +the buffer will be deallocated as soon as tmp\_buf goes out of scope. (The macro wxWX2MBbuf reflects the correct return value of cWX2MB (either char* or wxCharBuffer), except for the const.)