diff options
-rw-r--r-- | include/tools/urlobj.hxx | 18 | ||||
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index 96bc0cd30953..77786661152d 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -43,24 +43,6 @@ namespace com { namespace sun { namespace star { namespace util { #define INET_HID_SCHEME "hid:" #define URL_PREFIX_PRIV_SOFFICE "private:" -enum -{ - URL_PREFIX_PRIV_SOFFICE_LEN - = RTL_CONSTASCII_LENGTH(URL_PREFIX_PRIV_SOFFICE) -}; - -#define URL_PREFIX_PRIV_OBSOLETE URL_PREFIX_PRIV_SOFFICE -enum -{ - URL_PREFIX_PRIV_OBSOLETE_LEN - = RTL_CONSTASCII_LENGTH(URL_PREFIX_PRIV_OBSOLETE) -}; - -#define URL_PREFIX_PRIV_EXTERN "staroffice:" -enum -{ - URL_PREFIX_PRIV_EXTERN_LEN = RTL_CONSTASCII_LENGTH(URL_PREFIX_PRIV_EXTERN) -}; // Schemes: enum class INetProtocol diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 45eae7685161..bef17b0f4c47 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -358,7 +358,7 @@ static sal_uInt16 GetImageId_Impl( const INetURLObject& rObject, bool bDetectFol if ( rObject.GetProtocol() == INetProtocol::PrivSoffice ) { - OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN ); + OUString aURLPath = sURL.copy( strlen(URL_PREFIX_PRIV_SOFFICE) ); OUString aType = aURLPath.getToken( 0, '/' ); if ( aType == "factory" ) { @@ -536,7 +536,7 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb if ( rObject.GetProtocol() == INetProtocol::PrivSoffice ) { - OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN ); + OUString aURLPath = sURL.copy( strlen(URL_PREFIX_PRIV_SOFFICE) ); OUString aType = aURLPath.getToken( 0, '/' ); if ( aType == "factory" ) { |