From 1094fedfac9d48262400e2a07581bfa36b2a422e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 May 2017 09:16:50 +0200 Subject: 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 Reviewed-by: Noel Grandin --- oox/source/token/tokenmap.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'oox/source/token') 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 ) ) { -- cgit