diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-29 09:16:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-29 12:57:47 +0200 |
commit | 1094fedfac9d48262400e2a07581bfa36b2a422e (patch) | |
tree | d25b5741aa2d54825bb41f5473832d2bc8213b62 /xmloff | |
parent | 649228f932321c2c5784fbf7b0df84712fde55a0 (diff) |
getUtf8TokenName can return by const ref
and avoid some reference-counting in a hot path
Change-Id: I7f5fd7f8f5f9076eb5f8d60118afa8e3ac8a5e6c
Reviewed-on: https://gerrit.libreoffice.org/38129
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/fasttokenhandler.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmloff/source/core/fasttokenhandler.cxx b/xmloff/source/core/fasttokenhandler.cxx index 22a1606b44b1..b5fa379c9de7 100644 --- a/xmloff/source/core/fasttokenhandler.cxx +++ b/xmloff/source/core/fasttokenhandler.cxx @@ -32,6 +32,8 @@ namespace token { using namespace css; +const css::uno::Sequence< sal_Int8 > TokenMap::EMPTY_BYTE_SEQ; + TokenMap::TokenMap() : maTokenNames( static_cast< size_t >( XML_TOKEN_COUNT ) ) { |