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
{
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
{
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
- appName = appNameStr;
+ appName = appNameStr.c_str();
wxLogMessage(wxT("----- Classes in %s -----"), appName);
}
}