git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27046
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Let's put this in standard form so IDEs can load the file at the appropriate
// line
// Let's put this in standard form so IDEs can load the file at the appropriate
// line
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
{
wxObject *obj = (wxObject *)m_actualData;
{
wxObject *obj = (wxObject *)m_actualData;
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
else
msg += wxT("unknown object class");
else
msg += wxT("unknown object class");
- wxString msg2(wxT(""));
msg2.Printf(wxT(" at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize());
msg += msg2;
msg2.Printf(wxT(" at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize());
msg += msg2;
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
if (m_fileName)
msg.Printf(wxT("%s(%d): "), m_fileName, (int)m_lineNum);
- wxString msg2(wxT(""));
msg2.Printf(wxT("non-object data at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize() );
msg += msg2;
wxDebugContext::OutputDumpLine(msg);
msg2.Printf(wxT("non-object data at 0x%lX, size %d"), (long)GetActualData(), (int)RequestSize() );
msg += msg2;
wxDebugContext::OutputDumpLine(msg);
wxMemStruct *wxDebugContext::m_head = NULL;
wxMemStruct *wxDebugContext::m_tail = NULL;
wxMemStruct *wxDebugContext::m_head = NULL;
wxMemStruct *wxDebugContext::m_tail = NULL;
-bool wxDebugContext::m_checkPrevious = FALSE;
+bool wxDebugContext::m_checkPrevious = false;
int wxDebugContext::debugLevel = 1;
int wxDebugContext::debugLevel = 1;
-bool wxDebugContext::debugOn = TRUE;
+bool wxDebugContext::debugOn = true;
wxMemStruct *wxDebugContext::checkPoint = NULL;
// For faster alignment calculation
wxMemStruct *wxDebugContext::checkPoint = NULL;
// For faster alignment calculation
#ifdef __WXDEBUG__
TraverseList ((PmSFV)&wxMemStruct::PrintNode, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
#ifdef __WXDEBUG__
TraverseList ((PmSFV)&wxMemStruct::PrintNode, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
#ifdef __WXDEBUG__
{
wxChar* appName = (wxChar*) wxT("application");
#ifdef __WXDEBUG__
{
wxChar* appName = (wxChar*) wxT("application");
- wxString appNameStr(wxT(""));
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
TraverseList ((PmSFV)&wxMemStruct::Dump, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
TraverseList ((PmSFV)&wxMemStruct::Dump, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
- OutputDumpLine( wxT("") );
- OutputDumpLine( wxT("") );
+ OutputDumpLine(wxEmptyString);
+ OutputDumpLine(wxEmptyString);
#ifdef __WXDEBUG__
{
wxChar* appName = (wxChar*) wxT("application");
#ifdef __WXDEBUG__
{
wxChar* appName = (wxChar*) wxT("application");
- wxString appNameStr(wxT(""));
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
}
bool currentMode = GetDebugMode();
}
bool currentMode = GetDebugMode();
long noNonObjectNodes = 0;
long noObjectNodes = 0;
long noNonObjectNodes = 0;
long noObjectNodes = 0;
list = old->next;
free((char *)old);
}
list = old->next;
free((char *)old);
}
- OutputDumpLine(wxT(""));
+ OutputDumpLine(wxEmptyString);
}
SetDebugMode(currentMode);
}
SetDebugMode(currentMode);
OutputDumpLine(wxT("Number of object items: %ld"), noObjectNodes);
OutputDumpLine(wxT("Number of non-object items: %ld"), noNonObjectNodes);
OutputDumpLine(wxT("Total allocated size: %ld"), totalSize);
OutputDumpLine(wxT("Number of object items: %ld"), noObjectNodes);
OutputDumpLine(wxT("Number of non-object items: %ld"), noNonObjectNodes);
OutputDumpLine(wxT("Total allocated size: %ld"), totalSize);
- OutputDumpLine(wxT(""));
- OutputDumpLine(wxT(""));
+ OutputDumpLine(wxEmptyString);
+ OutputDumpLine(wxEmptyString);
{
{
wxChar* appName = (wxChar*) wxT("application");
{
{
wxChar* appName = (wxChar*) wxT("application");
- wxString appNameStr(wxT(""));
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
if (wxTheApp)
{
appNameStr = wxTheApp->GetAppName();
node = wxClassInfo::sm_classTable->Next();
n ++;
}
node = wxClassInfo::sm_classTable->Next();
n ++;
}
+ wxLogMessage(wxEmptyString);
wxLogMessage(wxT("There are %d classes derived from wxObject."), n);
wxLogMessage(wxT("There are %d classes derived from wxObject."), n);
- wxLogMessage(wxT(""));
- wxLogMessage(wxT(""));
- return TRUE;
+ wxLogMessage(wxEmptyString);
+ wxLogMessage(wxEmptyString);
+ return true;
}
void wxDebugContext::SetCheckpoint(bool all)
}
void wxDebugContext::SetCheckpoint(bool all)
#if USE_THREADSAFE_MEMORY_ALLOCATION
#if USE_THREADSAFE_MEMORY_ALLOCATION
-static bool memSectionOk = FALSE;
+static bool memSectionOk = false;
class MemoryCriticalSection : public wxCriticalSection
{
public:
MemoryCriticalSection() {
class MemoryCriticalSection : public wxCriticalSection
{
public:
MemoryCriticalSection() {
void wxDebugContextDumpDelayCounter::DoDump()
{
void wxDebugContextDumpDelayCounter::DoDump()
{
- if (wxDebugContext::CountObjectsLeft(TRUE) > 0)
+ if (wxDebugContext::CountObjectsLeft(true) > 0)
{
wxDebugContext::OutputDumpLine(wxT("There were memory leaks.\n"));
wxDebugContext::Dump();
{
wxDebugContext::OutputDumpLine(wxT("There were memory leaks.\n"));
wxDebugContext::Dump();