summaryrefslogtreecommitdiff
path: root/starmath/source/parse.cxx
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-02-05 13:33:24 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-06 07:52:25 +0100
commit4b055a51c501cec3f71600c1b87aa1fad85dd5af (patch)
tree9db944bd81a0f2910a669f73d4b197eda883230a /starmath/source/parse.cxx
parenta0c689e1ad98bf3c47d189b8cc99c9f4bcc41a12 (diff)
Optimize starmath color search
Needs Jenkins resume. Details: Uses ordered search Avoid useless data copy. Change-Id: I100dc08451788e705a0109f6c73172cb6964306b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r--starmath/source/parse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 5bb152f68607..8bd06070c268 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1008,7 +1008,7 @@ void SmParser::NextTokenColor(bool dvipload)
sal_Int32 n = aRes.EndPos - nRealStart;
assert(n >= 0);
OUString aName( m_aBufferString.copy( nRealStart, n ) );
- std::unique_ptr<SmColorTokenTableEntry> aSmColorTokenTableEntry;
+ const SmColorTokenTableEntry* aSmColorTokenTableEntry;
if(dvipload) aSmColorTokenTableEntry = starmathdatabase::Identify_ColorName_DVIPSNAMES( aName );
else aSmColorTokenTableEntry = starmathdatabase::Identify_ColorName_Parser( aName );
m_aCurToken = aSmColorTokenTableEntry;