summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r--src/corelib/tools/qarraydataops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index 0e067bbbe5a..7c12a84c10d 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -802,7 +802,7 @@ public:
// move (by assignment) the elements from e to end
// onto b to the new end
while (e != end) {
- *b = *e;
+ *b = std::move(*e);
++b;
++e;
}
@@ -830,7 +830,7 @@ public:
while (b != begin) {
--b;
--e;
- *e = *b;
+ *e = std::move(*b);
}
// destroy the final elements at the begin