summaryrefslogtreecommitdiffstats
path: root/translations/designer_zh_CN.ts
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-10-22 19:09:24 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-28 14:27:40 (GMT)
commite83bb2fdfc2dc899526c8157fd8b77a68cdde9da (patch)
tree50a23cf12df52705f254156072269ec4cce04a21 /translations/designer_zh_CN.ts
parent3f0b969772cf3056ed54349bfe6837d9de2995ea (diff)
downloadQt-e83bb2fdfc2dc899526c8157fd8b77a68cdde9da.zip
Qt-e83bb2fdfc2dc899526c8157fd8b77a68cdde9da.tar.gz
Qt-e83bb2fdfc2dc899526c8157fd8b77a68cdde9da.tar.bz2
Fix Qt containers to properly support types with strict alignments.
QContiguousCache is a new type, so there are no binary compatibility issues. QHash and QMap didn't have any public qMalloc / qFree, so the entire logic is contained in .cpp code. However, since old code will not inform us of the alignment requirements, we need to add a bit to the structure to indicate whether strict alignment is in use or not. QList doesn't require any changes. For small, movable types, they're all stored in the pointer array itself, so they're aligned. For larger types, we use new(), so types with stricter requirements should define their own operator new(). QLinkedList cannot be fixed. It uses new() on the QLinkedListNode, which contains a T type. Sorry. QVector did have public qMalloc / qFree. I've moved the calls to the inner function and made it keep the old calls if the alignment requirement is below a certain threshold. The idea is that, if it's above, no one was using QVector anyway. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'translations/designer_zh_CN.ts')
0 files changed, 0 insertions, 0 deletions