diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 22:17:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 23:16:45 +0000 |
commit | 709c1f365b3bdd0d46ec4f1ddc244580a0dfa637 (patch) | |
tree | 63668e23e125bf3fd1921f906cc269ed6ece8f38 /sc/source/ui/miscdlgs/conflictsdlg.cxx | |
parent | 868bd3b778b6c7b970c67d1dacc469967f69e551 (diff) |
remove various EraseLeadingAndTrailingChars
Diffstat (limited to 'sc/source/ui/miscdlgs/conflictsdlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/conflictsdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx index b2bfe045b7ff..1b617e023050 100644 --- a/sc/source/ui/miscdlgs/conflictsdlg.cxx +++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx @@ -31,6 +31,7 @@ //----------------------------------------------------------------------------- +#include <comphelper/string.hxx> #include <vcl/msgbox.hxx> #include "conflictsdlg.hxx" @@ -503,8 +504,7 @@ String ScConflictsDlg::GetActionString( const ScChangeAction* pAction, ScDocumen aString += aDesc; aString += '\t'; - String aUser = pAction->GetUser(); - aUser.EraseLeadingAndTrailingChars(); + String aUser = comphelper::string::strip(pAction->GetUser(), ' '); if ( aUser.Len() == 0 ) { aUser = maStrUnknownUser; |