diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-11-12 17:24:56 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-11-17 11:47:45 +0100 |
commit | a1f3be3e41f70b0dc39abe6ccdab9a493bd9b32f (patch) | |
tree | 9c7048844c39ef3984a1fd1d9aae4a6c58a966a0 /tests | |
parent | 8c1ff780180dd80bd11f7f582c4621d75d473618 (diff) |
Clean up QList(iterator, iterator)
Fold the two overloads into one, and distinguish the cases using
if constexpr. Do not overload QArrayOps::copyAppend(), to make it
clear which one is being used.
Change-Id: If6a894841aacb84ba190fb2209246f5f61034b42
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index 3dcaba4759..1963df1a0f 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -1169,7 +1169,7 @@ void tst_QArrayData::arrayOpsExtra() auto copy = cloneArrayDataPointer(dataPointer, dataPointer.size); const size_t distance = std::distance(first, last); - dataPointer->copyAppend(first, last); + dataPointer->appendIteratorRange(first, last); QCOMPARE(size_t(dataPointer.size), originalSize + distance); size_t i = 0; for (; i < originalSize; ++i) |