[haiku-commits] Re: haiku: hrev50835 - src/preferences/repositories data/artwork/icons

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 08 Jan 2017 19:21:51 -0500

Brian Hill wrote:

What about:

  BRow* row = fListView->RowAt((int32)0, NULL);
  while (row) {
      fListView->RemoveRow(row);
      delete row;
      row = fListView->RowAt((int32)0, NULL);
  }

or

  BRow* row = fListView->RemoveItem((int32)0);
  while (row) {
      delete row;
      row = fListView->RemoveItem((int32)0);
  }

Scratch the second one, just tried it and remembered- ColumnListView doesn't have the RemoveItem function like a ListView does.

-Brian

Other related posts: