Don't use undefined map[index] = map.size()

* The LHS map[index] can get executed first before map.size() and we end
  up with indices that are 1 higher than we expect
This commit is contained in:
baldurk
2018-02-13 19:26:55 +00:00
parent cad5520238
commit 5c859b20a6
@@ -230,7 +230,7 @@ void PerformanceCounterViewer::CaptureCounters()
{
if(eventIdToRow.contains(result.eventId))
continue;
eventIdToRow[result.eventId] = eventIdToRow.size();
eventIdToRow.insert(result.eventId, eventIdToRow.size());
}
ui->counterResults->setColumnCount(headers.size());