// so it should never be reserved, but test anyway
if(gs_autoIdsRefCount[id] == ID_RESERVED)
{
- wxASSERT_MSG(false, wxT("reserve id being decreased"));
+ wxFAIL_MSG(wxT("reserve id being decreased"));
gs_autoIdsRefCount[id] = ID_FREE;
}
else
m_break = 0;
m_ctdelay = 0;
- // if we are going to have at least one label, remember it in this var
- wxStaticText *label = NULL;
-
// also count how many labels we really have
size_t nTimeLabels = 0;
{
nTimeLabels++;
- label =
m_elapsed = CreateLabel(_("Elapsed time:"), sizerLabels);
}
{
nTimeLabels++;
- label =
m_estimated = CreateLabel(_("Estimated time:"), sizerLabels);
}
{
nTimeLabels++;
- label =
m_remaining = CreateLabel(_("Remaining time:"), sizerLabels);
}
sizerTop->Add(sizerLabels, 0, wxALIGN_CENTER_HORIZONTAL | wxTOP, LAYOUT_MARGIN);
const wxString::const_iterator end = text.end();
wxString::const_iterator copyFrom = text.begin();
- size_t posFrom = 0;
size_t pos = 0;
int posColumn = m_posColumn;
for ( wxString::const_iterator i = copyFrom; i != end; ++i, ++pos )
posColumn += expandTo;
copyFrom = i + 1;
- posFrom = pos + 1;
}
else
{
WXDLLEXPORT bool
wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
{
+ bool ok = true;
if ( oleVariant.vt & VT_ARRAY )
{
variant.ClearList();
if ( FAILED(hr) )
return false;
- bool ok = true;
for ( int i = 0; i < cElements; i++ )
{
VARIANTARG& oleElement = pvdata[i];
}
}
- return true;
+ return ok;
}
/*