diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-02-05 22:38:56 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-16 01:56:43 +0100 |
commit | 10de7f77f4ff37899db57d08fbd2a2b0702d1ab0 (patch) | |
tree | a87d7d7891a2d5e9f4f9825fc7e9c183793a6351 /mkspecs/macx-g++40 | |
parent | acb9537551afa46330edfcc1bbad27c15099b902 (diff) |
qmetaobjectbuilder: Add asserts to confirm validity
buildMetaObject() can operate in two "modes", based on whether a
buffer to write the meta-object into is passed or not. Add asserts
to make sure that the intermediate meta-data indexes are correct
in both "modes", and that the final size in "write mode" matches
the size that was computed in the preceding non-writing pass.
The asserts make it easier to catch obvious problems when changing
buildMetaObject() to generate a new meta-object revision.
Change-Id: Ief7c74e6f6fca836587e831b06072d6aa98c7193
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'mkspecs/macx-g++40')
0 files changed, 0 insertions, 0 deletions