summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-08-06 10:40:32 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 12:22:10 +0100
commitcf239da5c403164e75c369173fe6bed747de9e09 (patch)
tree38999901baaf3091692d7649c7804f224b661a99 /package
parent515ceca5153d67ea602ab8c4fb339a7b42e9063e (diff)
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index fa066bd07b8c..d0e63fbda425 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -711,7 +711,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
{
if ( !sMediaType.isEmpty() )
{
- if ( sMediaType.indexOf ( OUString( RTL_CONSTASCII_USTRINGPARAM ( "text" ) ) ) != -1
+ if ( sMediaType.indexOf ( "text" ) != -1
|| sMediaType == "application/vnd.sun.star.oleobject" )
bToBeCompressed = sal_True;
else if ( !m_bCompressedIsSetFromOutside )