summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-06 14:35:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-06 14:38:42 +0100
commite2cd6a77ea0e8a1abd8f4d3570ba4f5fdefff3e1 (patch)
treea345e3aae24a7f41209b40e370aa89787686979e /fpicker
parent5662854bc29acb45c1c449c05d1e92f96a4b335a (diff)
drop String::Reverse
Change-Id: Ie06635dc1f242241d48f9d6de4f592898e605bf2
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index cc57c5bc7565..006f8e866541 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -2557,8 +2557,7 @@ void SvtFileDialog::implArrangeControls()
sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
{
String aEmpty;
- String aReversePath( rPath );
- aReversePath.Reverse();
+ String aReversePath = comphelper::string::reverseString(rPath);
sal_uInt16 nQuestionMarkPos = rPath.Search( '?' );
if ( nQuestionMarkPos != STRING_NOTFOUND )
@@ -2607,12 +2606,12 @@ sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilt
// cut off filter
rFilter = aReversePath;
rFilter.Erase( nPathTokenPos );
- rFilter.Reverse();
+ rFilter = comphelper::string::reverseString(rFilter);
// determine folder
rPath = aReversePath;
rPath.Erase( 0, nPathTokenPos );
- rPath.Reverse();
+ rPath = comphelper::string::reverseString(rPath);
}
else
{