summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-11 10:05:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-11 10:05:49 +0200
commit2d30d16e1314883fdd02f0dda0a1115799320299 (patch)
tree03efba081e800789ad15599f8dae5dc6ae12ba85 /package
parent9f279e9902b07a07505fe7191e8b0a1d3db81c57 (diff)
-Werror,-Wunused-variable
Change-Id: I682b5d72c1785e8d8cb9c8bb42d4a0bab6db263e
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackage.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 669a8025c5c9..3f6a0f5be159 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1030,9 +1030,6 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< uno::Seq
void ZipPackage::WriteContentTypes( ZipOutputStream& aZipOut, const vector< uno::Sequence < PropertyValue > >& aManList )
{
- const OUString sFullPath ("FullPath");
- const OUString sMediaType ("MediaType");
-
ZipEntry* pEntry = new ZipEntry;
ZipPackageBuffer *pBuffer = new ZipPackageBuffer( n_ConstBufferSize );
uno::Reference< io::XOutputStream > xConTypeOutStream( *pBuffer, UNO_QUERY );
@@ -1055,7 +1052,7 @@ void ZipPackage::WriteContentTypes( ZipOutputStream& aZipOut, const vector< uno:
{
OUString aPath;
OUString aType;
- OSL_ENSURE( ( *aIter )[PKG_MNFST_MEDIATYPE].Name.equals( sMediaType ) && ( *aIter )[PKG_MNFST_FULLPATH].Name.equals( sFullPath ),
+ OSL_ENSURE( ( *aIter )[PKG_MNFST_MEDIATYPE].Name == "MediaType" && ( *aIter )[PKG_MNFST_FULLPATH].Name == "FullPath",
"The mediatype sequence format is wrong!\n" );
( *aIter )[PKG_MNFST_MEDIATYPE].Value >>= aType;
if ( !aType.isEmpty() )