// VZ: I still don't like it... the string data may be shared...
wxChar * cptr = (wxChar *)str.c_str(); // const_cast
const wxChar * begin = cptr;
+ wxUnusedVar(begin);
wxChar backup;
for(;;)
m_si = list->GetDefaultStyleInfo();
m_line = list->GetFirstLine();
m_iterator = m_line->GetFirstObject();
- m_FirstTime = TRUE;
+ m_FirstTime = true;
}
wxLayoutExportObject *wxLayoutExport(wxLayoutExportStatus *status,
int mode, int flags)
{
+ wxLayoutObjectList::iterator nulled(NULL);
wxASSERT(status);
wxLayoutExportObject * exp;
- if(status->m_iterator == NULLIT) // end of line
+ if(status->m_iterator == nulled) // end of line
{
if(!status->m_line || status->m_line->GetNextLine() == NULL)
// reached end of list
}
exp = new wxLayoutExportObject();
wxLayoutObjectType type;
- if(status->m_iterator != NULLIT)
+ if(status->m_iterator != nulled)
{
type = (** status->m_iterator).GetType();
if( mode == WXLO_EXPORT_AS_OBJECTS || ! WXLO_IS_TEXT(type)) // simple case
}
}
else
- { // iterator == NULLIT
+ { // iterator == nulled
if(mode == WXLO_EXPORT_AS_OBJECTS)
{
exp->type = WXLO_EXPORT_EMPTYLINE;
else
type = WXLO_TYPE_TEXT;
}
+ wxUnusedVar(type);
wxString *str = new wxString();
// text must be concatenated
for(;;)
{
- while(status->m_iterator == NULLIT)
+ while(status->m_iterator == nulled)
{
if(mode & WXLO_EXPORT_AS_HTML)
*str += _T("<br>");
*str += wxLayoutExportCmdAsHTML(
*(wxLayoutObjectCmd const *)*status->m_iterator,
& status->m_si, status->m_FirstTime);
- status->m_FirstTime = FALSE;
+ status->m_FirstTime = false;
break;
default: // ignore icons
;