summaryrefslogtreecommitdiff
path: root/util/unicode/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util/unicode/main.cpp')
-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 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";