From 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 11 Jun 2012 13:15:18 +0100 Subject: remove EraseLeadingChars and EraseTrailingChars Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892 --- svtools/source/dialogs/filedlg2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/dialogs/filedlg2.cxx') 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 ); -- cgit