summaryrefslogtreecommitdiff
path: root/vcl/source/control/longcurr.cxx
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 /vcl/source/control/longcurr.cxx
parent868bd3b778b6c7b970c67d1dacc469967f69e551 (diff)
remove various EraseLeadingAndTrailingChars
Diffstat (limited to 'vcl/source/control/longcurr.cxx')
-rw-r--r--vcl/source/control/longcurr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index 34048a1c60ce..e43e746052ff 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -29,6 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
+#include <comphelper/string.hxx>
#include <sot/object.hxx>
#define _TOOLS_BIGINT
#include <sot/factory.hxx>
@@ -154,7 +155,7 @@ static sal_Bool ImplNumericGetValue( const XubString& rStr, BigInt& rValue,
return sal_False;
// Fuehrende und nachfolgende Leerzeichen entfernen
- aStr.EraseLeadingAndTrailingChars( ' ' );
+ aStr = comphelper::string::strip(aStr, ' ');
// Position des Dezimalpunktes suchen
nDecPos = aStr.Search( rLocaleDataWrapper.getNumDecimalSep() );