X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa75d6d98c2ca564d2a3a6892e2efeef789ef433..bf9ce2abdf465110ca83469c1b336b056ae8ec72:/src/common/memory.cpp diff --git a/src/common/memory.cpp b/src/common/memory.cpp index e141d7a766..f4491a6758 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -593,8 +593,8 @@ bool wxDebugContext::Dump(void) if (wxTheApp) { appNameStr = wxTheApp->GetAppName(); - appName = appNameStr; - OutputDumpLine(wxT("----- Memory dump of %s at %s -----"), appName, (const wxChar *)wxNow() ); + appName = appNameStr.c_str(); + OutputDumpLine(wxT("----- Memory dump of %s at %s -----"), appName, wx_static_cast(const wxChar *, wxNow().c_str())); } else { @@ -649,8 +649,8 @@ bool wxDebugContext::PrintStatistics(bool detailed) if (wxTheApp) { appNameStr = wxTheApp->GetAppName(); - appName = appNameStr; - OutputDumpLine(wxT("----- Memory statistics of %s at %s -----"), appName, (const wxChar *) wxNow() ); + appName = appNameStr.c_str(); + OutputDumpLine(wxT("----- Memory statistics of %s at %s -----"), appName, wx_static_cast(const wxChar *, wxNow().c_str())); } else { @@ -743,7 +743,7 @@ bool wxDebugContext::PrintClasses(void) if (wxTheApp) { appNameStr = wxTheApp->GetAppName(); - appName = appNameStr; + appName = appNameStr.c_str(); wxLogMessage(wxT("----- Classes in %s -----"), appName); } }