diff options
Diffstat (limited to 'sfx2/source/dialog/mailmodel.cxx')
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 1cf9a2a3ee0d..79a4671c5e3a 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -972,12 +972,12 @@ sal_Bool CreateFromAddress_Impl( String& rFrom ) { if ( aFirstName.Len() ) { - rFrom = TRIM( aFirstName ); + rFrom = comphelper::string::strip(aFirstName, ' '); if ( aName.Len() ) rFrom += ' '; } - rFrom += TRIM( aName ); + rFrom += comphelper::string::strip(aName, ' '); // remove illegal characters rFrom = comphelper::string::remove(rFrom, '<'); rFrom = comphelper::string::remove(rFrom, '>'); @@ -993,7 +993,7 @@ sal_Bool CreateFromAddress_Impl( String& rFrom ) { if ( rFrom.Len() ) rFrom += ' '; - ( ( rFrom += '<' ) += TRIM( aEmailName ) ) += '>'; + ( ( rFrom += '<' ) += comphelper::string::strip(aEmailName, ' ') ) += '>'; } else rFrom.Erase(); |