summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qarraydataops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index d50c74f2c20..9b29b8a1807 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -215,7 +215,7 @@ public:
struct Span { T *begin; T *end; };
- void copyRanges(const std::initializer_list<Span> &ranges)
+ void copyRanges(std::initializer_list<Span> ranges)
{
auto it = this->begin();
std::for_each(ranges.begin(), ranges.end(), [&it](const auto &span) {