diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2010-11-29 17:38:45 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-29 17:39:26 +0100 |
commit | 155a7ceeed542911817dfaa6b2959717f6c92735 (patch) | |
tree | 18b64a0ace528fca58aac38f8b4a8b1c7ce83ff8 /util/unicode/main.cpp | |
parent | c4c27dd09c8caade06bba4143833a5dbba0cd6e6 (diff) | |
download | qt4-tools-155a7ceeed542911817dfaa6b2959717f6c92735.tar.gz |
define a constant for the expected Properties struct size
Merge-request: 946
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util/unicode/main.cpp')
-rw-r--r-- | util/unicode/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index cfe5956ace..6949e4c5cf 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -370,6 +370,7 @@ static const char *methods = " inline int script(const QChar &ch)\n" " { return script(ch.unicode()); }\n\n"; +static const int SizeOfPropertiesStruct = 20; struct PropertyFlags { bool operator ==(const PropertyFlags &o) { @@ -2031,8 +2032,8 @@ static QByteArray createPropertyInfo() qDebug(" block data uses: %d bytes", smp_block_data); qDebug(" trie data uses : %d bytes", smp_trie); - qDebug("\n properties use : %d bytes", uniqueProperties.size()*20); - qDebug(" memory usage: %d bytes", bmp_mem+smp_mem + uniqueProperties.size()*20); + qDebug("\n properties uses : %d bytes", uniqueProperties.size() * SizeOfPropertiesStruct); + qDebug(" memory usage: %d bytes", bmp_mem + smp_mem + uniqueProperties.size() * SizeOfPropertiesStruct); QByteArray out; out += "static const unsigned short uc_property_trie[] = {\n"; |