msg2.Printf(wxT(" at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize());
msg += msg2;
- wxDebugContext::OutputDumpLine(msg);
+ wxDebugContext::OutputDumpLine(msg.c_str());
}
else
{
wxString msg2;
msg2.Printf(wxT("non-object data at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize() );
msg += msg2;
- wxDebugContext::OutputDumpLine(msg);
+ wxDebugContext::OutputDumpLine(msg.c_str());
}
}
{
#ifdef __WXDEBUG__
{
- wxChar* appName = (wxChar*) wxT("application");
+ const wxChar* appName = wxT("application");
wxString appNameStr;
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
- appName = WXSTRINGCAST appNameStr;
- OutputDumpLine(wxT("----- Memory dump of %s at %s -----"), appName, WXSTRINGCAST wxNow() );
+ appName = appNameStr.c_str();
+ OutputDumpLine(wxT("----- Memory dump of %s at %s -----"), appName, static_cast<const wxChar *>(wxNow().c_str()));
}
else
{
{
#ifdef __WXDEBUG__
{
- wxChar* appName = (wxChar*) wxT("application");
+ const wxChar* appName = wxT("application");
wxString appNameStr;
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
- appName = WXSTRINGCAST appNameStr;
- OutputDumpLine(wxT("----- Memory statistics of %s at %s -----"), appName, WXSTRINGCAST wxNow() );
+ appName = appNameStr.c_str();
+ OutputDumpLine(wxT("----- Memory statistics of %s at %s -----"), appName, static_cast<const wxChar *>(wxNow().c_str()));
}
else
{
bool wxDebugContext::PrintClasses(void)
{
{
- wxChar* appName = (wxChar*) wxT("application");
+ const wxChar* appName = wxT("application");
wxString appNameStr;
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
- appName = WXSTRINGCAST appNameStr;
+ appName = appNameStr.c_str();
wxLogMessage(wxT("----- Classes in %s -----"), appName);
}
}