diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-21 18:29:29 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-21 18:29:29 (GMT) |
commit | 10a0ed3f2e6a71eced5f470f1c3e09d7be58bbc9 (patch) | |
tree | 96c7425b144b40e3cbd3a854965b742a64c1de52 | |
parent | b15fbecb8a141c12282481529d3b2e1f0d5d9026 (diff) | |
download | Qt-10a0ed3f2e6a71eced5f470f1c3e09d7be58bbc9.zip Qt-10a0ed3f2e6a71eced5f470f1c3e09d7be58bbc9.tar.gz Qt-10a0ed3f2e6a71eced5f470f1c3e09d7be58bbc9.tar.bz2 |
Remove the unnecessary double memcpy now too.
The previous commit reintroduced memcpy in detach2(). So we don't need
to do memcpy here.
Re-add the memcpy when detach3() is introduced.
-rw-r--r-- | src/corelib/tools/qlist.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index ab6f7bd..5fa0f6c 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -381,9 +381,6 @@ Q_INLINE_TEMPLATE void QList<T>::node_copy(Node *from, Node *to, Node *src) (reinterpret_cast<T*>(current--))->~T(); QT_RETHROW; } - } else { - if (src != from && to - from > 0) - memcpy(from, src, (to - from) * sizeof(Node *)); } } |