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:
parent
8c8d8c4d3a
commit
dd134b9534
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user