summaryrefslogtreecommitdiffstats
path: root/util/unicode
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2010-11-29 16:38:45 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-29 16:39:26 (GMT)
commit155a7ceeed542911817dfaa6b2959717f6c92735 (patch)
tree18b64a0ace528fca58aac38f8b4a8b1c7ce83ff8 /util/unicode
parentc4c27dd09c8caade06bba4143833a5dbba0cd6e6 (diff)
downloadQt-155a7ceeed542911817dfaa6b2959717f6c92735.zip
Qt-155a7ceeed542911817dfaa6b2959717f6c92735.tar.gz
Qt-155a7ceeed542911817dfaa6b2959717f6c92735.tar.bz2
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')
-rw-r--r--util/unicode/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index cfe5956..6949e4c 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";