summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-23 22:17:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-23 23:16:45 +0000
commit709c1f365b3bdd0d46ec4f1ddc244580a0dfa637 (patch)
tree63668e23e125bf3fd1921f906cc269ed6ece8f38 /starmath
parent868bd3b778b6c7b970c67d1dacc469967f69e551 (diff)
remove various EraseLeadingAndTrailingChars
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx2
-rw-r--r--starmath/source/node.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 72ba885992d8..1b66fa13207b 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1112,7 +1112,7 @@ void SmCursor::InsertSpecial(XubString aString) {
BeginEdit();
Delete();
- aString.EraseLeadingAndTrailingChars();
+ aString = comphelper::string::strip(aString, ' ');
aString = comphelper::string::stripStart(aString, '%');
//Create instance of special node
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 156537ae8112..e7c6ebcf89de 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1677,7 +1677,7 @@ void SmBraceNode::CreateTextFromNode(String &rText)
{
String aStr;
GetSubNode(0)->CreateTextFromNode(aStr);
- aStr.EraseLeadingAndTrailingChars();
+ aStr = comphelper::string::strip(aStr, ' ');
aStr = comphelper::string::stripStart(aStr, '\\');
if (aStr.Len())
{
@@ -1700,7 +1700,7 @@ void SmBraceNode::CreateTextFromNode(String &rText)
{
String aStr;
GetSubNode(2)->CreateTextFromNode(aStr);
- aStr.EraseLeadingAndTrailingChars();
+ aStr = comphelper::string:strip(aStr, ' ');
aStr = comphelper::string::stripStart(aStr, '\\');
if (aStr.Len())
{