node = m_MapList->GetFirst();
}
- delete m_MapList;
- m_MapList = NULL;
+ wxDELETE(m_MapList);
}
}
const wxChar *p = line.c_str();
// skip whitespace
- while ( isascii(*p) && isspace(*p) )
+ while ( isascii(*p) && wxIsspace(*p) )
p++;
// skip empty lines and comments
return false;
p = end;
- while ( isascii(*p) && isspace(*p) )
+ while ( isascii(*p) && wxIsspace(*p) )
p++;
// next should be the URL
wxString url;
url.reserve(line.length());
- while ( isascii(*p) && !isspace(*p) )
+ while ( isascii(*p) && !wxIsspace(*p) )
url += *p++;
- while ( isascii(*p) && isspace(*p) )
+ while ( isascii(*p) && wxIsspace(*p) )
p++;
// and finally the optional description of the entry after comment
if ( *p == WXEXTHELP_COMMENTCHAR )
{
p++;
- while ( isascii(*p) && isspace(*p) )
+ while ( isascii(*p) && wxIsspace(*p) )
p++;
doc = p;
}
file << m_helpDir << wxFILE_SEP_PATH << contents;
if (file.Contains(wxT('#')))
file = file.BeforeLast(wxT('#'));
- if (contents.length() && wxFileExists(file))
+ if ( wxFileExists(file) )
rc = DisplaySection(WXEXTHELP_CONTENTS_ID);
// if not found, open homemade toc: