summaryrefslogtreecommitdiff
path: root/oox/source/token
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-29 09:16:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-29 12:57:47 +0200
commit1094fedfac9d48262400e2a07581bfa36b2a422e (patch)
treed25b5741aa2d54825bb41f5473832d2bc8213b62 /oox/source/token
parent649228f932321c2c5784fbf7b0df84712fde55a0 (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 'oox/source/token')
-rw-r--r--oox/source/token/tokenmap.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/token/tokenmap.cxx b/oox/source/token/tokenmap.cxx
index 549c40fec7b3..fc5e7ab48394 100644
--- a/oox/source/token/tokenmap.cxx
+++ b/oox/source/token/tokenmap.cxx
@@ -43,6 +43,8 @@ namespace {
#endif
} // namespace
+const css::uno::Sequence< sal_Int8 > TokenMap::EMPTY_BYTE_SEQ;
+
TokenMap::TokenMap() :
maTokenNames( static_cast< size_t >( XML_TOKEN_COUNT ) )
{