diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-09 08:51:26 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-09 08:51:56 (GMT) |
commit | 91ceb21d1d5f6447a47853b6625fb51d2f21cf16 (patch) | |
tree | 5148e804a2d1bc8e794d8565bd81606f0bac29e0 /src/corelib/xml | |
parent | 662d1db6ee1a78c298acc11e7528e73c0415fc75 (diff) | |
download | Qt-91ceb21d1d5f6447a47853b6625fb51d2f21cf16.zip Qt-91ceb21d1d5f6447a47853b6625fb51d2f21cf16.tar.gz Qt-91ceb21d1d5f6447a47853b6625fb51d2f21cf16.tar.bz2 |
small refactoring to reduce memory usage of static data
Diffstat (limited to 'src/corelib/xml')
-rw-r--r-- | src/corelib/xml/qxmlstream.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp index 5e1fec3..fddcecf 100644 --- a/src/corelib/xml/qxmlstream.cpp +++ b/src/corelib/xml/qxmlstream.cpp @@ -629,7 +629,7 @@ while (<STDIN>) { $sizes[$i++] = $counter; $counter += length 1 + $_; } -print " \"\\0\";\n\nstatic const int QXmlStreamReader_tokenTypeString_indices[] = {\n "; +print " \"\\0\";\n\nstatic const short QXmlStreamReader_tokenTypeString_indices[] = {\n "; for ($j = 0; $j < $i; ++$j) { printf "$sizes[$j], "; } @@ -660,10 +660,9 @@ static const char QXmlStreamReader_tokenTypeString_string[] = "Comment\0" "DTD\0" "EntityReference\0" - "ProcessingInstruction\0" - "\0"; + "ProcessingInstruction\0"; -static const int QXmlStreamReader_tokenTypeString_indices[] = { +static const short QXmlStreamReader_tokenTypeString_indices[] = { 0, 8, 16, 30, 42, 55, 66, 77, 85, 89, 105, 0 }; |