summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-01 08:40:44 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-01 12:14:45 +0300
commitb6dbe2be875d181d4d926ba95e52820d7d0d6240 (patch)
tree134e4d88cd1a1645342ebd261fc22487477da5f2 /fpicker
parent5ce92b73ce06c805c66e53c48aa2c70c722aaf60 (diff)
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
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx4
1 files changed, 2 insertions, 2 deletions
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 )
{