From dd134b9534bf148c2306e344cec05b117705222c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Apr 2017 20:07:16 +0200 Subject: [PATCH] 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+. --- docs/doxygen/overviews/datetime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/doxygen/overviews/datetime.h b/docs/doxygen/overviews/datetime.h index d2284e255f..fb64d18e8f 100644 --- a/docs/doxygen/overviews/datetime.h +++ b/docs/doxygen/overviews/datetime.h @@ -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