Fix wrong example using printf() in wxDateTime overview

Use wxPrintf() and remove the c_str() call which is redundant with it instead
of using printf() which can't be used with non-POD objects like wxCStrData
returned by c_str() in wx 3.0+.
This commit is contained in:
Vadim Zeitlin 2017-04-18 20:07:16 +02:00
parent 8c8d8c4d3a
commit dd134b9534

View File

@ -175,8 +175,8 @@ I.e. you would just write
@code
wxDateTime dt(...whatever...);
printf("The time is %s in local time zone", dt.FormatTime().c_str());
printf("The time is %s in GMT", dt.FormatTime(wxDateTime::GMT).c_str());
wxPrintf("The time is %s in local time zone", dt.FormatTime());
wxPrintf("The time is %s in GMT", dt.FormatTime(wxDateTime::GMT));
@endcode