summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry/package/dp_package.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/registry/package/dp_package.cxx')
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 23f583e16823..81b88058b609 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -1458,17 +1458,13 @@ void BackendImpl::PackageImpl::scanBundle(
{
if (!(fullPath.isEmpty() || mediaType.isEmpty()))
break;
- if (attribs[i].Name.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("FullPath") ))
+ if ( attribs[i].Name == "FullPath" )
attribs[i].Value >>= fullPath;
- else if (attribs[i].Name.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("MediaType") ))
+ else if ( attribs[i].Name == "MediaType" )
attribs[i].Value >>= mediaType;
}
- if (fullPath.isEmpty() || mediaType.isEmpty() ||
- mediaType.equalsAsciiL( // opt: exclude common text/xml
- RTL_CONSTASCII_STRINGPARAM("text/xml") ))
+ if ( fullPath.isEmpty() || mediaType.isEmpty() || mediaType == "text/xml" )// opt: exclude common text/xml
continue;
String type, subType;