Reduce QtCore lib binary size by around ~3KB, by removing template code
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Fri, 10 Feb 2012 08:14:41 +0000 (09:14 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 11:57:02 +0000 (12:57 +0100)
commitbeab403d9fcf1fb41f3c133fc6d58e1e864a8d56
treefa72affa7967706066308bb1af45f9630e23703c
parentdf055acc81f555011524a79cae3509669bbd0b8b
Reduce QtCore lib binary size by around ~3KB, by removing template code

Reusing a template is much better then creating a new one, even if it
should inline the same code.

For some reason replacing T* by void* force gcc to remove a few bytes
per template instantiation too, it is not really significant, but it
alows us to simplify the code.

Benchmarks don't show any regressions.

Change-Id: I4fdf1e4dc311b23021eb5758605602937d05b183
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qmetatype.cpp
src/corelib/kernel/qmetatype.h
src/corelib/kernel/qmetatype_p.h
tests/auto/other/compiler/tst_compiler.cpp