diff options
-rw-r--r-- | package/source/xstor/xstorage.cxx | 6 | ||||
-rw-r--r-- | unoidl/source/legacyprovider.cxx | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 3488e5726150..adc4a3a2d661 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -3142,9 +3142,6 @@ uno::Reference< io::XStream > SAL_CALL OStorage::openEncryptedStream( throw lang::DisposedException( THROW_WHERE ); } - if ( m_pData->m_nStorageType != embed::StorageFormats::PACKAGE ) - packages::NoEncryptionException(); - if ( ( nOpenMode & embed::ElementModes::WRITE ) && m_pData->m_bReadOnlyWrap ) throw io::IOException( THROW_WHERE ); // TODO: access denied @@ -3231,9 +3228,6 @@ uno::Reference< io::XStream > SAL_CALL OStorage::cloneEncryptedStream( throw lang::DisposedException( THROW_WHERE ); } - if ( m_pData->m_nStorageType != embed::StorageFormats::PACKAGE ) - packages::NoEncryptionException(); - if ( !aEncryptionData.getLength() ) throw lang::IllegalArgumentException( THROW_WHERE, uno::Reference< uno::XInterface >(), 2 ); diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx index eb9462c733f2..b39c08d806d8 100644 --- a/unoidl/source/legacyprovider.cxx +++ b/unoidl/source/legacyprovider.cxx @@ -377,7 +377,7 @@ rtl::Reference< Entity > readEntity( base = reader.getSuperTypeName(0).replace('/', '.'); break; default: - FileFormatException( + throw FileFormatException( key.getRegistryName(), ("legacy format: unexpected number " + OUString::number(reader.getSuperTypeCount()) @@ -397,7 +397,7 @@ rtl::Reference< Entity > readEntity( translateAnnotations(reader.getDocumentation())); } else { if (reader.getSuperTypeCount() != 0) { - FileFormatException( + throw FileFormatException( key.getRegistryName(), ("legacy format: unexpected number " + OUString::number(reader.getSuperTypeCount()) @@ -432,7 +432,7 @@ rtl::Reference< Entity > readEntity( for (sal_uInt16 j = 0; j != n; ++j) { RTConstValue v(reader.getFieldValue(j)); if (v.m_type != RT_TYPE_INT32) { - FileFormatException( + throw FileFormatException( key.getRegistryName(), ("legacy format: unexpected type " + OUString::number(v.m_type) + " of value of field " |