summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/mailmodel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/mailmodel.cxx')
-rw-r--r--sfx2/source/dialog/mailmodel.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index d662371bc329..42da4b80bea7 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -73,12 +73,13 @@
#include <ucbhelper/content.hxx>
#include <tools/urlobj.hxx>
#include <unotools/useroptions.hxx>
-#include <comphelper/processfactory.hxx>
#include <comphelper/extract.hxx>
-#include <comphelper/storagehelper.hxx>
-#include <comphelper/sequenceasvector.hxx>
-#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/mediadescriptor.hxx>
+#include <comphelper/processfactory.hxx>
+#include <comphelper/sequenceashashmap.hxx>
+#include <comphelper/sequenceasvector.hxx>
+#include <comphelper/storagehelper.hxx>
+#include <comphelper/string.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/svapp.hxx>
#include <cppuhelper/implbase1.hxx>
@@ -992,15 +993,15 @@ sal_Bool CreateFromAddress_Impl( String& rFrom )
}
rFrom += TRIM( aName );
// remove illegal characters
- rFrom.EraseAllChars( '<' );
- rFrom.EraseAllChars( '>' );
- rFrom.EraseAllChars( '@' );
+ rFrom = comphelper::string::remove(rFrom, '<');
+ rFrom = comphelper::string::remove(rFrom, '>');
+ rFrom = comphelper::string::remove(rFrom, '@');
}
String aEmailName = aUserCFG.GetEmail();
// remove illegal characters
- aEmailName.EraseAllChars( '<' );
- aEmailName.EraseAllChars( '>' );
+ aEmailName = comphelper::string::remove(aEmailName, '<');
+ aEmailName = comphelper::string::remove(aEmailName, '>');
if ( aEmailName.Len() )
{