Store only unique strings in the QtDBus meta-object string table
authorKent Hansen <kent.hansen@nokia.com>
Mon, 6 Feb 2012 18:00:13 +0000 (19:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 01:35:05 +0000 (02:35 +0100)
commit016633931f708f6495874a8722c7aae657e37438
tree959607c173f078fe460b450ca89ee8af0984fc20
parent3d3f5f84fe3bbe9862ac3837c9dfb38216c1a081
Store only unique strings in the QtDBus meta-object string table

Do like moc: If the string has already been entered into the table,
just return its position, don't make a new copy. This can save
space, for example, if there are several properties of the same type;
the typename only occurs once in the string table but will be
referenced by several property descriptors.

Change-Id: I63e5c73d28ba117fd00a5261d0e89f3a3d83df9a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/dbus/qdbusmetaobject.cpp