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 /svl/source/numbers/zforscan.cxx | |
parent | 2106d8e648449d34b195068eef5f672a14ea64a8 (diff) |
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'svl/source/numbers/zforscan.cxx')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 069d2d3941e9..c883242f7a1d 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -28,6 +28,7 @@ #include <stdlib.h> +#include <comphelper/string.hxx> #include <tools/debug.hxx> #include <i18npool/mslangid.hxx> #include <unotools/charclass.hxx> @@ -487,8 +488,7 @@ Color* ImpSvNumberformatScan::GetColor(String& sStr) if (nPos > 0) { sStr.Erase(0, nPos); - sStr.EraseLeadingChars(); - sStr.EraseTrailingChars(); + sStr = comphelper::string::strip(sStr, ' '); if (bConvertMode) { pFormatter->ChangeIntl(eNewLnge); @@ -498,8 +498,7 @@ Color* ImpSvNumberformatScan::GetColor(String& sStr) else sStr.Insert(rColorWord,0); sString.Erase(0, nPos); - sString.EraseLeadingChars(); - sString.EraseTrailingChars(); + sString = comphelper::string::strip(sString, ' '); if ( CharClass::isAsciiNumeric( sString ) ) { |