Editor/LayersEditor: Use regular iterators instead of move iterators

Same behavior, but compatible with GCC
This commit is contained in:
Lioncash 2019-08-26 22:41:38 -04:00
parent a178d55007
commit bf872e9037
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ bool LayersModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int c
beginMoveRows(sourceParent, sourceRow, sourceRow + count - 1, destinationParent, destinationChild); beginMoveRows(sourceParent, sourceRow, sourceRow + count - 1, destinationParent, destinationChild);
std::vector<amuse::LayerMapping>& layers = *m_node->m_obj; std::vector<amuse::LayerMapping>& layers = *m_node->m_obj;
const auto pivot = std::make_move_iterator(layers.begin() + sourceRow); const auto pivot = layers.begin() + sourceRow;
const auto begin = std::make_move_iterator(layers.begin() + destinationChild); const auto begin = layers.begin() + destinationChild;
const auto end = pivot + count; const auto end = pivot + count;
if (destinationChild < sourceRow) { if (destinationChild < sourceRow) {