diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 09:36:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 10:29:57 +0200 |
commit | 101a9b4a3fcf1fd0a7163dac3a5dcd69431f4fee (patch) | |
tree | 29039a491e9ca058bd3ea9114bf8889ce8089ebc /include/xmloff | |
parent | 55220e7bc6576a7575c675ba425e757a3aefa243 (diff) |
loplugin:constantparam
Change-Id: I9cdd15185cfa8347a08402da956eab7cbdd63de6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/xmltkmap.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/xmloff/xmltkmap.hxx b/include/xmloff/xmltkmap.hxx index 0449a27d184e..f915dd1108a9 100644 --- a/include/xmloff/xmltkmap.hxx +++ b/include/xmloff/xmltkmap.hxx @@ -30,7 +30,7 @@ class SvXMLTokenMap_Impl; #define XML_TOK_UNKNOWN 0xffffU -#define XML_TOKEN_MAP_END { 0xffffU, xmloff::token::XML_TOKEN_INVALID, 0U, 0 } +#define XML_TOKEN_MAP_END { 0xffffU, xmloff::token::XML_TOKEN_INVALID, 0U } struct SvXMLTokenMapEntry { @@ -40,14 +40,12 @@ struct SvXMLTokenMapEntry sal_uInt16 nToken; SvXMLTokenMapEntry( sal_uInt16 nPrefix, xmloff::token::XMLTokenEnum eName, - sal_uInt16 nTok, sal_Int32 nFastTok = 0 ) : + sal_uInt16 nTok ) : eLocalName( eName ), nFastToken( sal_uInt32( nPrefix + 1 ) << 16 | eLocalName ), nPrefixKey( nPrefix ), nToken( nTok ) { - if ( nFastTok ) // alternative value for duplicate/dummy tokens - nFastToken = nFastTok; } }; |