diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-28 12:38:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-29 08:31:21 +0200 |
commit | b1e36f4d264f1d8d8df4558ba0c781ccb93a4244 (patch) | |
tree | 39b8e40a58c9d9d78c455ead6d0aef6c2aa7a0ea /xmloff/source/draw | |
parent | 560a0f2fbe452d25fe78d6756919c11ec67f630f (diff) |
tdf#63640 FILEOPEN/FILESAVE: particular .odt loads/saves very slow, part4
cache the XMLTokenMap data in static const vars, so we only need to
initialise them once
Change-Id: Ib63bedc5af5d5927fed189a6b1a86a5db6865c72
Reviewed-on: https://gerrit.libreoffice.org/71466
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r-- | xmloff/source/draw/XMLImageMapContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/XMLImageMapContext.cxx b/xmloff/source/draw/XMLImageMapContext.cxx index b7386c24f0d7..c7126b055865 100644 --- a/xmloff/source/draw/XMLImageMapContext.cxx +++ b/xmloff/source/draw/XMLImageMapContext.cxx @@ -173,7 +173,7 @@ XMLImageMapObjectContext::XMLImageMapObjectContext( void XMLImageMapObjectContext::StartElement( const Reference<XAttributeList >& xAttrList ) { - SvXMLTokenMap aMap(aImageMapObjectTokenMap); + static const SvXMLTokenMap aMap(aImageMapObjectTokenMap); sal_Int16 nLength = xAttrList->getLength(); for(sal_Int16 nAttr = 0; nAttr < nLength; nAttr++) |