diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 21:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:02 +0000 |
commit | ca02d728082a86780d68ede7b9d565128dbc0434 (patch) | |
tree | 8c0a857ad73f89d592295f99e5f72a0c96e55e57 /svl/source/svdde | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'svl/source/svdde')
-rw-r--r-- | svl/source/svdde/ddesvr.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx index 7e114c3d06ac..80bfb2e8be88 100644 --- a/svl/source/svdde/ddesvr.cxx +++ b/svl/source/svdde/ddesvr.cxx @@ -32,6 +32,7 @@ #define UNICODE #include "ddeimp.hxx" #include <algorithm> +#include <comphelper/string.hxx> #include <svl/svdde.hxx> #include <svl/svarray.hxx> #include <tools/debug.hxx> @@ -133,7 +134,8 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback( while( STRING_NOTFOUND != n ) { String s( sTopics.GetToken( 0, '\t', n )); - s.EraseAllChars( '\n' ).EraseAllChars( '\r' ); + s = comphelper::string::remove(s, '\n'); + s = comphelper::string::remove(s, '\r'); if( !hText1 || s == reinterpret_cast<const sal_Unicode*>(chTopicBuf) ) { DdeString aDStr( pInst->hDdeInstSvr, s ); |