void PointsList::Rebuild() { m_data.clear(); InsertCell(-1, 0xFFFFFFFF); int counter = 0; map<float, float>::iterator current = m_table->m_table.begin(); while (current != m_table->m_table.end()) { InsertCell(-1, counter); current++; counter++; } }
NS_IMETHODIMP HTMLTableRowElement::InsertCell(int32_t aIndex, nsIDOMHTMLElement** aValue) { ErrorResult rv; nsRefPtr<nsGenericHTMLElement> cell = InsertCell(aIndex, rv); return rv.Failed() ? rv.ErrorCode() : CallQueryInterface(cell, aValue); }
void SAWindow::ChangeCellsOrder() { if ((rand() % 2) == 0) ExchangeTwoCells(); else InsertCell(); }