From bf872e903711641e499cc96aee6eae89e667974f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 26 Aug 2019 22:41:38 -0400 Subject: [PATCH] Editor/LayersEditor: Use regular iterators instead of move iterators Same behavior, but compatible with GCC --- Editor/LayersEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/LayersEditor.cpp b/Editor/LayersEditor.cpp index b8fde40..f816837 100644 --- a/Editor/LayersEditor.cpp +++ b/Editor/LayersEditor.cpp @@ -459,8 +459,8 @@ bool LayersModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int c beginMoveRows(sourceParent, sourceRow, sourceRow + count - 1, destinationParent, destinationChild); std::vector& layers = *m_node->m_obj; - const auto pivot = std::make_move_iterator(layers.begin() + sourceRow); - const auto begin = std::make_move_iterator(layers.begin() + destinationChild); + const auto pivot = layers.begin() + sourceRow; + const auto begin = layers.begin() + destinationChild; const auto end = pivot + count; if (destinationChild < sourceRow) {