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:
@@ -175,8 +175,8 @@ I.e. you would just write
|
|||||||
|
|
||||||
@code
|
@code
|
||||||
wxDateTime dt(...whatever...);
|
wxDateTime dt(...whatever...);
|
||||||
printf("The time is %s in local time zone", dt.FormatTime().c_str());
|
wxPrintf("The time is %s in local time zone", dt.FormatTime());
|
||||||
printf("The time is %s in GMT", dt.FormatTime(wxDateTime::GMT).c_str());
|
wxPrintf("The time is %s in GMT", dt.FormatTime(wxDateTime::GMT));
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user