diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 15:10:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 15:39:28 +0100 |
commit | 850be5e3d14b91f1097be9ac9c12ef85c13b55f8 (patch) | |
tree | 69249937c54932a05648b760d1c5bc868d49254e /package | |
parent | bcba2088ab6e2b762800b8c11e0bce25185b369a (diff) |
coverity#706577 Uncaught exception
Change-Id: Ifc4c7f3e7a19bad2ae420c0ebab54cf56404de51
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/xstorage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index f7a8b6e47967..d19e9d2c7a9e 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -3874,7 +3874,7 @@ void SAL_CALL OStorage::insertRawEncrStreamElement( const OUString& aStreamName, } if ( m_pData->m_nStorageType != embed::StorageFormats::PACKAGE ) - throw packages::NoEncryptionException( THROW_WHERE ); + throw embed::InvalidStorageException( THROW_WHERE ); if ( aStreamName.isEmpty() || !::comphelper::OStorageHelper::IsValidZipEntryFileName( aStreamName, false ) ) throw lang::IllegalArgumentException( THROW_WHERE "Unexpected entry name syntax.", uno::Reference< uno::XInterface >(), 1 ); |