diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2017-06-27 00:46:25 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-06-27 17:51:33 +0200 |
commit | c44d9f9e627eb074367cc47ae4742aedea44c370 (patch) | |
tree | 140d8cbef8335d416e2d6cb2a836ee60c56ceeef /include/xmloff | |
parent | d109948f0dd4190d7aca1e0fa7e2706ef3f40a6c (diff) |
Using fast tokens directly:
Replacing integer-to-integer mapped tokens with
fast Tokens direcly for branching.
Adding a macro XML_ELEMENT that combines namespace
and element tokens.
Change-Id: I8701c8af9607392843460fe726bffb6556cf9b33
Reviewed-on: https://gerrit.libreoffice.org/39275
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/xmlimp.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx index 8ac87d820c88..1521dd93b0cd 100644 --- a/include/xmloff/xmlimp.hxx +++ b/include/xmloff/xmlimp.hxx @@ -64,6 +64,7 @@ #include <memory> #define NAMESPACE_TOKEN( prefixToken ) ( ( sal_Int32( prefixToken + 1 ) ) << NMSP_SHIFT ) +#define XML_ELEMENT( prefix, name ) ( NAMESPACE_TOKEN( XML_NAMESPACE_##prefix ) | name ) const size_t NMSP_SHIFT = 16; const sal_Int32 TOKEN_MASK = 0xffff; |