diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-28 11:47:35 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-28 14:27:45 (GMT) |
commit | 5b4b6b2be7b901ef9a29c37431998034730fa3d3 (patch) | |
tree | 9dd31b2f0af3f23462575c02f17eb33bdf9bb7e0 /src/corelib/tools/qvector.cpp | |
parent | e83bb2fdfc2dc899526c8157fd8b77a68cdde9da (diff) | |
download | Qt-5b4b6b2be7b901ef9a29c37431998034730fa3d3.zip Qt-5b4b6b2be7b901ef9a29c37431998034730fa3d3.tar.gz Qt-5b4b6b2be7b901ef9a29c37431998034730fa3d3.tar.bz2 |
Initialise the reserved bits to 0.
This is future compatibility: we must rely on them being 0 in older
versions of Qt.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/corelib/tools/qvector.cpp')
-rw-r--r-- | src/corelib/tools/qvector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qvector.cpp b/src/corelib/tools/qvector.cpp index 6522791..8bb1074 100644 --- a/src/corelib/tools/qvector.cpp +++ b/src/corelib/tools/qvector.cpp @@ -52,7 +52,7 @@ static inline int alignmentThreshold() return 2 * sizeof(void*); } -QVectorData QVectorData::shared_null = { Q_BASIC_ATOMIC_INITIALIZER(1), 0, 0, true, false }; +QVectorData QVectorData::shared_null = { Q_BASIC_ATOMIC_INITIALIZER(1), 0, 0, true, false, 0 }; QVectorData *QVectorData::malloc(int sizeofTypedData, int size, int sizeofT, QVectorData *init) { |