projects
/
profile
/
ivi
/
qtbase.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Silence clang warning in QVector::reallocData()
[profile/ivi/qtbase.git]
/
src
/
corelib
/
tools
/
qvector.h
diff --git
a/src/corelib/tools/qvector.h
b/src/corelib/tools/qvector.h
index
b75c297
..
f3ef9b9
100644
(file)
--- a/
src/corelib/tools/qvector.h
+++ b/
src/corelib/tools/qvector.h
@@
-456,7
+456,7
@@
void QVector<T>::reallocData(const int asize, const int aalloc, QArrayData::Allo
new (dst++) T(*srcBegin++);
}
} else {
- ::memcpy(
dst
, srcBegin, (srcEnd - srcBegin) * sizeof(T));
+ ::memcpy(
static_cast<void *>(dst)
, srcBegin, (srcEnd - srcBegin) * sizeof(T));
dst += srcEnd - srcBegin;
// destruct unused / not moved data