summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-03-25 10:29:38 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-08-22 15:33:15 +0200
commit0ec0ba24f0f28deef7993e430682bf4a5d9f3271 (patch)
tree78a4ec5eb774fb803d877e9c52b1ad6e6eacca8c /package
parent2f2409fdac98cc3470ad8fa1d45ab84bb50e929c (diff)
oox: typos, comments, formatting
Change-Id: I6bb138be2a8da91a85248e85d408f54a9b885f9b Reviewed-on: https://gerrit.libreoffice.org/77686 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackage.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index f5d8ca351ba9..574b7a434f5c 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -713,9 +713,9 @@ void SAL_CALL ZipPackage::initialize( const uno::Sequence< Any >& aArguments )
}
else if ( aNamedValue.Value >>= nFormatID )
{
- if ( nFormatID != embed::StorageFormats::PACKAGE
- && nFormatID != embed::StorageFormats::ZIP
- && nFormatID != embed::StorageFormats::OFOPXML )
+ if (nFormatID != embed::StorageFormats::PACKAGE
+ && nFormatID != embed::StorageFormats::ZIP
+ && nFormatID != embed::StorageFormats::OFOPXML)
throw lang::IllegalArgumentException(THROW_WHERE, uno::Reference< uno::XInterface >(), 1 );
m_nFormat = nFormatID;
@@ -1088,8 +1088,7 @@ void ZipPackage::WriteContentTypes( ZipOutputStream& aZipOut, const vector< uno:
pEntry->nSize = pEntry->nCompressedSize = -1;
pEntry->nTime = ZipOutputStream::getCurrentDosTime();
- // Convert vector into a uno::Sequence
- // TODO/LATER: use Default entries in future
+ // Add default entries, the count must be updated manually when appending.
uno::Sequence< beans::StringPair > aDefaultsSequence(4);
// Add at least the standard default entries.
aDefaultsSequence[0].First = "xml";