diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-01 08:40:44 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-01 12:14:45 +0300 |
commit | b6dbe2be875d181d4d926ba95e52820d7d0d6240 (patch) | |
tree | 134e4d88cd1a1645342ebd261fc22487477da5f2 /svtools/source | |
parent | 5ce92b73ce06c805c66e53c48aa2c70c722aaf60 (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 'svtools/source')
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 3e01565a92aa..06c78f557962 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -359,7 +359,7 @@ static sal_uInt16 GetImageId_Impl( const INetURLObject& rObject, bool bDetectFol if ( rObject.GetProtocol() == INET_PROT_PRIVATE ) { OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN ); - OUString aType = aURLPath.getToken( 0, INET_PATH_TOKEN ); + OUString aType = aURLPath.getToken( 0, '/' ); if ( aType == "factory" ) { // detect an image id for our "private:factory" urls @@ -369,7 +369,7 @@ static sal_uInt16 GetImageId_Impl( const INetURLObject& rObject, bool bDetectFol return nImage; } else if ( aType == "image" ) - nImage = (sal_uInt16)aURLPath.getToken( 1, INET_PATH_TOKEN ).toInt32(); + nImage = (sal_uInt16)aURLPath.getToken( 1, '/' ).toInt32(); } else { @@ -530,10 +530,10 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb if ( rObject.GetProtocol() == INET_PROT_PRIVATE ) { OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN ); - OUString aType = aURLPath.getToken( 0, INET_PATH_TOKEN ); + OUString aType = aURLPath.getToken( 0, '/' ); if ( aType == "factory" ) { - sDescription = GetDescriptionByFactory_Impl( aURLPath.copy( aURLPath.indexOf( INET_PATH_TOKEN ) + 1 ) ); + sDescription = GetDescriptionByFactory_Impl( aURLPath.copy( aURLPath.indexOf( '/' ) + 1 ) ); bDetected = true; } } |