diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 13:15:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 14:46:46 +0100 |
commit | 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch) | |
tree | 143883c85467b5ce9f5c665338e0f8a25067a0cd /basic/source/runtime/methods1.cxx | |
parent | callcatcher: update unused code (diff) | |
download | core-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.tar.gz core-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.zip |
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'basic/source/runtime/methods1.cxx')
-rw-r--r-- | basic/source/runtime/methods1.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 2195a177c52e..42ea005bec82 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -682,10 +682,8 @@ RTLFUNC(Trim) StarBASIC::Error( SbERR_BAD_ARGUMENT ); else { - String aStr( rPar.Get(1)->GetString() ); - aStr.EraseLeadingChars(); - aStr.EraseTrailingChars(); - rPar.Get(0)->PutString( aStr ); + rtl::OUString aStr(comphelper::string::strip(rPar.Get(1)->GetString(), ' ')); + rPar.Get(0)->PutString(aStr); } } |