path: root/src/tools
diff options
authorKent Hansen <>2012-02-05 22:38:56 +0100
committerQt by Nokia <>2012-02-16 01:56:43 +0100
commit10de7f77f4ff37899db57d08fbd2a2b0702d1ab0 (patch)
treea87d7d7891a2d5e9f4f9825fc7e9c183793a6351 /src/tools
parentacb9537551afa46330edfcc1bbad27c15099b902 (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 <> Reviewed-by: Jędrzej Nowacki <> Reviewed-by: João Abecasis <> Reviewed-by: Kent Hansen <>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions