diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-26 15:35:04 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-26 15:35:23 +0200 |
commit | fa535cf1755edcba630369b7ee1ae1605474d29c (patch) | |
tree | 145f5d8b6521e42ada58fc6e631cab54097fe1ea | |
parent | 127caae6f7ec97ba1387e2e737f499e149d134ab (diff) |
token id 0 has a special meaning in the hash
Change-Id: I380c0d7640a0047fa53770ddfb6150dd2e3b61be
-rw-r--r-- | filter/source/svg/gentoken.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/svg/gentoken.pl b/filter/source/svg/gentoken.pl index a731079c3d90..1c7736d77451 100644 --- a/filter/source/svg/gentoken.pl +++ b/filter/source/svg/gentoken.pl @@ -55,9 +55,9 @@ print ( HXX "#include <sal/types.h>\n\n" ); $i = 0; foreach( sort(keys(%tokens)) ) { + $i = $i + 1; print( HXX "const sal_Int32 $tokens{$_} = $i;\n" ); print( GPERF "$_,$tokens{$_}\n" ); - $i = $i + 1; } print ( GPERF "%%\n" ); print ( HXX "const sal_Int32 XML_TOKEN_COUNT = $i;\n" ); |