summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/filedlg2.cxx
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 /svtools/source/dialogs/filedlg2.cxx
parent2106d8e648449d34b195068eef5f672a14ea64a8 (diff)
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'svtools/source/dialogs/filedlg2.cxx')
-rw-r--r--svtools/source/dialogs/filedlg2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx
index 2b7425541841..5785246090e0 100644
--- a/svtools/source/dialogs/filedlg2.cxx
+++ b/svtools/source/dialogs/filedlg2.cxx
@@ -81,7 +81,7 @@ KbdListBox::PreNotify( NotifyEvent& rNEvt )
for ( sal_uInt16 i = 1; i < nEntries; i++ )
{
UniString aEntry = GetEntry ( (i + nCurrentPos) % nEntries );
- aEntry.EraseLeadingChars( ' ' );
+ aEntry = comphelper::string::stripStart(aEntry, ' ');
aEntry.ToUpperAscii();
UniString aCompare( cCharCode );
aCompare.ToUpperAscii();
@@ -266,8 +266,8 @@ IMPL_LINK( ImpPathDialog, SelectHdl, ListBox *, p )
// isolate the pure name of the entry
// removing trainling stuff and leading spaces
UniString aEntry( pDirList->GetSelectEntry() );
+ aEntry = comphelper::string::stripStart(aEntry, ' ');
- aEntry.EraseLeadingChars( ' ' );
sal_uInt16 nPos = aEntry.Search( '/' );
aEntry.Erase( nPos );
@@ -360,7 +360,7 @@ IMPL_LINK( ImpPathDialog, DblClickHdl, ListBox*, pBox )
// removing trainling stuff and leading spaces
UniString aEntry( pBox->GetSelectEntry() );
- aEntry.EraseLeadingChars( ' ' );
+ aEntry = comphelper::string::stripStart(aEntry, ' ');
sal_uInt16 nPos = aEntry.Search( '/' );
aEntry.Erase( nPos );