diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-28 22:47:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 11:44:44 +0000 |
commit | bdd60f1f5e0b995572321fd0865ccb8849d8ed76 (patch) | |
tree | 36fd199eded442f12c223a6b9830e5202c85855c /starmath/source | |
parent | 2c10714426cc813c36aa82e4870b7b51c5c03050 (diff) |
Adapt loplugin:stringconstant to improved OUStringLiteral1
Change-Id: Ibc5128df8bcf8cb5f2f09551c0de6dfdb46bdee0
Reviewed-on: https://gerrit.libreoffice.org/28447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 59083c1a759d..97eaacec6b11 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -312,21 +312,25 @@ OUString SmOoxmlImport::handleD() opening = "left lbrace "; if( closing == "}" ) closing = " right rbrace"; - if( opening == OUString( sal_Unicode( 0x27e6 ))) + if( opening == OUStringLiteral1<0x27e6>() ) opening = "left ldbracket "; - if( closing == OUString( sal_Unicode( 0x27e7 ))) + if( closing == OUStringLiteral1<0x27e7>() ) closing = " right rdbracket"; if( opening == "|" ) opening = "left lline "; if( closing == "|" ) closing = " right rline"; - if (opening == OUString(MS_DLINE) || opening == OUString(MS_DVERTLINE)) + if (opening == OUStringLiteral1<MS_DLINE>() + || opening == OUStringLiteral1<MS_DVERTLINE>()) opening = "left ldline "; - if (closing == OUString(MS_DLINE) || closing == OUString(MS_DVERTLINE)) + if (closing == OUStringLiteral1<MS_DLINE>() + || closing == OUStringLiteral1<MS_DVERTLINE>()) closing = " right rdline"; - if (opening == OUString(MS_LANGLE) || opening == OUString(MS_LMATHANGLE)) + if (opening == OUStringLiteral1<MS_LANGLE>() + || opening == OUStringLiteral1<MS_LMATHANGLE>()) opening = "left langle "; - if (closing == OUString(MS_RANGLE) || closing == OUString(MS_RMATHANGLE)) + if (closing == OUStringLiteral1<MS_RANGLE>() + || closing == OUStringLiteral1<MS_RMATHANGLE>()) closing = " right rangle"; // use scalable brackets (the explicit "left" or "right") if( opening == "(" || opening == "[" ) |