summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-18 21:03:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-19 21:11:02 +0000
commitca02d728082a86780d68ede7b9d565128dbc0434 (patch)
tree8c0a857ad73f89d592295f99e5f72a0c96e55e57 /vcl/source/control/edit.cxx
parente4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff)
remove [Byte]String::EraseAllChars
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index a0a81e93a573..35b35cafc66a 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -68,8 +68,9 @@
#include <com/sun/star/uno/Any.hxx>
-#include <comphelper/processfactory.hxx>
#include <comphelper/configurationhelper.hxx>
+#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <sot/exchange.hxx>
#include <sot/formats.hxx>
@@ -781,10 +782,10 @@ void Edit::ImplDelete( const Selection& rSelection, sal_uInt8 nDirection, sal_uI
String Edit::ImplGetValidString( const String& rString ) const
{
- String aValidString( rString );
- aValidString.EraseAllChars( _LF );
- aValidString.EraseAllChars( _CR );
- aValidString.SearchAndReplaceAll( '\t', ' ' );
+ rtl::OUString aValidString( rString );
+ aValidString = comphelper::string::remove(aValidString, _LF);
+ aValidString = comphelper::string::remove(aValidString, _CR);
+ aValidString = aValidString.replace('\t', ' ');
return aValidString;
}