diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 22:17:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 23:16:45 +0000 |
commit | 709c1f365b3bdd0d46ec4f1ddc244580a0dfa637 (patch) | |
tree | 63668e23e125bf3fd1921f906cc269ed6ece8f38 /automation | |
parent | 868bd3b778b6c7b970c67d1dacc469967f69e551 (diff) |
remove various EraseLeadingAndTrailingChars
Diffstat (limited to 'automation')
-rw-r--r-- | automation/source/testtool/objtest.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx index 6659f663da5c..7da2f47d2808 100644 --- a/automation/source/testtool/objtest.cxx +++ b/automation/source/testtool/objtest.cxx @@ -43,6 +43,7 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/frame/XDesktop.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <com/sun/star/bridge/XBridgeFactory.hpp> #include <com/sun/star/connection/XConnector.hpp> #include <com/sun/star/connection/XConnection.hpp> @@ -2897,8 +2898,8 @@ HACK("Ich gestehe alles: Ich war zu faul das richtig zu machen.") do { nOldLen = aSuffix.Len(); - aSuffix.EraseLeadingAndTrailingChars( ' ' ); - aSuffix.EraseLeadingAndTrailingChars( 0x09 ); + aSuffix = comphelper::string::strip(aSuffix, ' '); + aSuffix = comphelper::string::strip(aSuffix, 0x09); } while ( nOldLen != aSuffix.Len() ); aSource.Erase(nTestCase,nTcEnd-nTestCase); aSource.Insert(CUniString("Sub ").Append(aSuffix).AppendAscii(" CaseLog \"").Append(aSuffix).AppendAscii("\" : on error goto endcse : TestEnter "),nTestCase); |