From b6dbe2be875d181d4d926ba95e52820d7d0d6240 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 1 Apr 2014 08:40:44 +0300 Subject: Bin pointless INET_PATH_TOKEN There is nothing mnemonic in the name 'INET_PATH_TOKEN' that would tell the code reader that it simply means '/'. Change-Id: I89ce72e8be5cf0ef2c66b23ad6e721ad49105648 --- fpicker/source/office/iodlg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpicker/source/office/iodlg.cxx') diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 7e3184fc3a1a..dbd0e6a80c98 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -2165,7 +2165,7 @@ short SvtFileDialog::PrepareExecute() OUString aFileName( aFolderURL.getName( INetURLObject::LAST_SEGMENT, false ) ); sal_Int32 nFileNameLen = aFileName.getLength(); bool bFileToSelect = nFileNameLen != 0; - if ( bFileToSelect && aFileName[ nFileNameLen - 1 ] != INET_PATH_TOKEN ) + if ( bFileToSelect && aFileName[ nFileNameLen - 1 ] != '/' ) { _pImp->_pEdFileName->SetText( GET_DECODED_NAME( aFolderURL ) ); aFolderURL.removeSegment(); @@ -2507,7 +2507,7 @@ sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& r if ( nWildCardPos != -1 ) { - sal_Int32 nPathTokenPos = aReversePath.indexOf( INET_PATH_TOKEN ); + sal_Int32 nPathTokenPos = aReversePath.indexOf( '/' ); if ( nPathTokenPos == -1 ) { -- cgit