diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:17:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:17:51 +0100 |
commit | cfe98bd195e7dd831e1f08dd1e34653ab4f1f152 (patch) | |
tree | c1e1854b79a89ae5a0b95e44e9b11f0161309a80 /starmath | |
parent | 4888f82557f8aec29b1f7fa729888d1c71aef596 (diff) |
starmath: Use appropriate OUString functions on string constants
Change-Id: Iff85fd325211708591c289d083cf3d0ee4269634
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index ca641e88159a..5bf4abb490ec 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -912,7 +912,7 @@ bool SmDocShell::ConvertTo( SfxMedium &rMedium ) aEquation.SetFlat(true); bRet = aEquation.Export(rMedium); } - else if (pFlt->GetFilterName().equalsAscii("MathType 3.x")) + else if (pFlt->GetFilterName() == "MathType 3.x") bRet = WriteAsMathType3( rMedium ); } return bRet; diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index e7c01e345048..9d8356a0e97b 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1620,11 +1620,11 @@ void SmBraceNode::CreateTextFromNode(OUString &rText) aStr = comphelper::string::stripStart(aStr, '\\'); if (!aStr.isEmpty()) { - if (aStr.equalsAscii("divides")) + if (aStr == "divides") rText += "lline"; - else if (aStr.equalsAscii("parallel")) + else if (aStr == "parallel") rText += "ldline"; - else if (aStr.equalsAscii("<")) + else if (aStr == "<") rText += "langle"; else rText += aStr; @@ -1643,11 +1643,11 @@ void SmBraceNode::CreateTextFromNode(OUString &rText) aStr = comphelper::string::stripStart(aStr, '\\'); if (!aStr.isEmpty()) { - if (aStr.equalsAscii("divides")) + if (aStr == "divides") rText += "rline"; - else if (aStr.equalsAscii("parallel")) + else if (aStr == "parallel") rText += "rdline"; - else if (aStr.equalsAscii(">")) + else if (aStr == ">") rText += "rangle"; else rText += aStr; |