Skip to content

Commit

Permalink
Refs #9854 Use reverse iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Jul 9, 2014
1 parent 000f81b commit 8d231e3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -510,7 +510,7 @@ void AlgHistoryTreeWidget::itemChecked(QTreeWidgetItem* item, int index)
//sum the indices to obtain the positions we must unroll
std::vector<int> unrollIndicies;
unrollIndicies.reserve(indicies.size());
std::partial_sum(indicies.begin(), indicies.end(), std::back_inserter(unrollIndicies) );
std::partial_sum(indicies.rbegin(), indicies.rend(), std::back_inserter(unrollIndicies) );

this->blockSignals(false);
emit unrollAlgorithmHistory(unrollIndicies);
Expand Down

0 comments on commit 8d231e3

Please sign in to comment.