summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-11 13:15:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-11 14:46:46 +0100
commit8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch)
tree143883c85467b5ce9f5c665338e0f8a25067a0cd /fpicker
parent2106d8e648449d34b195068eef5f672a14ea64a8 (diff)
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
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() )