diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2018-02-28 16:50:44 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-11-19 20:12:09 +0000 |
commit | 93c3844a84f0acd382be5021d2ebe896269b7277 (patch) | |
tree | f0965edfc85525786864871bc3f3c5b4f3469476 | |
parent | 6626572f8604b2789da9253ccd7aa92d3f6013e9 (diff) |
Silence another GCC 8 warning in qpodvector
qtdeclarative/src/qml/qml/ftw/qpodvector_p.h:119:22: error: ‘void* memmove(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘class QQuickBasePositioner::PositionedItem’; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
::memmove(m_data + idx, m_data + idx + count,
Change-Id: I049703a0a6bb4432dfd3d3ce3c8cef13e9c2e31a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit 55f71cdfc5746a71bcb89f0fa4ff3447cb8b5514)
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
-rw-r--r-- | src/qml/qml/ftw/qpodvector_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/ftw/qpodvector_p.h b/src/qml/qml/ftw/qpodvector_p.h index 6d04c181c0..4ccf5232dc 100644 --- a/src/qml/qml/ftw/qpodvector_p.h +++ b/src/qml/qml/ftw/qpodvector_p.h @@ -116,7 +116,7 @@ public: void remove(int idx, int count = 1) { int moveCount = m_count - (idx + count); if (moveCount) - ::memmove(m_data + idx, m_data + idx + count, + ::memmove(static_cast<void *>(m_data + idx), static_cast<const void *>(m_data + idx + count), moveCount * sizeof(T)); m_count -= count; } |