summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 006f8e866541..acb134732ebe 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -3401,7 +3401,7 @@ QueryFolderNameDialog::QueryFolderNameDialog
IMPL_LINK_NOARG(QueryFolderNameDialog, OKHdl)
{
// trim the strings
- aNameEdit.SetText( aNameEdit.GetText().EraseLeadingChars().EraseTrailingChars() );
+ aNameEdit.SetText(comphelper::string::strip(aNameEdit.GetText(), ' '));
EndDialog( RET_OK );
return 1;
}
@@ -3410,8 +3410,7 @@ IMPL_LINK_NOARG(QueryFolderNameDialog, OKHdl)
IMPL_LINK_NOARG(QueryFolderNameDialog, NameHdl)
{
// trim the strings
- String aName = aNameEdit.GetText();
- aName.EraseLeadingChars().EraseTrailingChars();
+ String aName = comphelper::string::strip(aNameEdit.GetText(), ' ');
if ( aName.Len() )
{
if ( !aOKBtn.IsEnabled() )