diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-07-12 18:30:11 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-12 14:07:19 +0000 |
commit | a323172a92434189ec14eff5b3ca0d6c3b63f269 (patch) | |
tree | ce4f32c7ccc4d98296e09f5d283eaca4844da658 /starmath/source | |
parent | a563758746a6cd3900c88928c115275229617ed0 (diff) |
starmath: no need to create temporary string for comparison
Change-Id: I906ef285ec6164284924ca4771a6da758bd23fd6
Reviewed-on: https://gerrit.libreoffice.org/27140
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/parse.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index f1434c9939d2..9ac2d932e748 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -298,7 +298,7 @@ const SmTokenTableEntry * SmParser::GetTokenTableEntry( const OUString &rName ) { for (auto const &token : aTokenTable) { - if (rName.equalsIgnoreAsciiCase( OUString::createFromAscii(token.pIdent) )) + if (rName.equalsIgnoreAsciiCaseAscii( token.pIdent )) return &token; } } |