summaryrefslogtreecommitdiffstats
path: root/package/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /package/inc
parentMoved About dialog to DialogFragment (diff)
downloadcore-e57ca02849c3d87142ff5ff9099a212e72b8139c.tar.gz
core-e57ca02849c3d87142ff5ff9099a212e72b8139c.zip
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ByteChucker.hxx6
-rw-r--r--package/inc/ByteGrabber.hxx12
-rw-r--r--package/inc/CRC32.hxx15
-rw-r--r--package/inc/ZipOutputStream.hxx21
-rw-r--r--package/inc/ZipPackage.hxx60
-rw-r--r--package/inc/ZipPackageBuffer.hxx33
-rw-r--r--package/inc/ZipPackageEntry.hxx36
-rw-r--r--package/inc/ZipPackageFolder.hxx51
-rw-r--r--package/inc/ZipPackageStream.hxx51
-rw-r--r--package/inc/zipfileaccess.hxx26
10 files changed, 105 insertions, 206 deletions
diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx
index a06800524a3b..7e1b07c6680f 100644
--- a/package/inc/ByteChucker.hxx
+++ b/package/inc/ByteChucker.hxx
@@ -46,13 +46,11 @@ public:
/// @throws css::io::BufferSizeExceededException
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void WriteBytes( const css::uno::Sequence< sal_Int8 >& aData )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException);
+ void WriteBytes( const css::uno::Sequence< sal_Int8 >& aData );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- sal_Int64 GetPosition()
- throw(css::io::IOException, css::uno::RuntimeException);
+ sal_Int64 GetPosition();
void WriteInt16(sal_Int16 nInt16)
{
diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx
index ec27a6aee5bc..865e3486b489 100644
--- a/package/inc/ByteGrabber.hxx
+++ b/package/inc/ByteGrabber.hxx
@@ -52,22 +52,18 @@ public:
/// @throws css::io::BufferSizeExceededException
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException);
+ sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead );
// XSeekable
/// @throws css::lang::IllegalArgumentException
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void SAL_CALL seek( sal_Int64 location )
- throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException);
+ void SAL_CALL seek( sal_Int64 location );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- sal_Int64 SAL_CALL getPosition( )
- throw(css::io::IOException, css::uno::RuntimeException);
+ sal_Int64 SAL_CALL getPosition( );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- sal_Int64 SAL_CALL getLength( )
- throw(css::io::IOException, css::uno::RuntimeException);
+ sal_Int64 SAL_CALL getLength( );
sal_uInt16 ReadUInt16();
sal_uInt32 ReadUInt32();
diff --git a/package/inc/CRC32.hxx b/package/inc/CRC32.hxx
index b70c621c859a..4d616b3b04d7 100644
--- a/package/inc/CRC32.hxx
+++ b/package/inc/CRC32.hxx
@@ -34,20 +34,15 @@ public:
~CRC32();
/// @throws css::uno::RuntimeException
- sal_Int64 SAL_CALL updateStream (css::uno::Reference < css::io::XInputStream > & xStream)
- throw(css::uno::RuntimeException);
+ sal_Int64 SAL_CALL updateStream (css::uno::Reference < css::io::XInputStream > & xStream);
/// @throws css::uno::RuntimeException
- void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len)
- throw(css::uno::RuntimeException);
+ void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len);
/// @throws css::uno::RuntimeException
- void SAL_CALL update(const css::uno::Sequence< sal_Int8 > &b)
- throw(css::uno::RuntimeException);
+ void SAL_CALL update(const css::uno::Sequence< sal_Int8 > &b);
/// @throws css::uno::RuntimeException
- sal_Int32 SAL_CALL getValue()
- throw(css::uno::RuntimeException);
+ sal_Int32 SAL_CALL getValue();
/// @throws css::uno::RuntimeException
- void SAL_CALL reset()
- throw(css::uno::RuntimeException);
+ void SAL_CALL reset();
};
#endif
diff --git a/package/inc/ZipOutputStream.hxx b/package/inc/ZipOutputStream.hxx
index 67adc1a7222d..34fdc6b7426f 100644
--- a/package/inc/ZipOutputStream.hxx
+++ b/package/inc/ZipOutputStream.hxx
@@ -51,21 +51,17 @@ public:
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void writeLOC( ZipEntry *pEntry, bool bEncrypt = false )
- throw(css::io::IOException, css::uno::RuntimeException);
+ void writeLOC( ZipEntry *pEntry, bool bEncrypt = false );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void rawWrite( const css::uno::Sequence< sal_Int8 >& rBuffer )
- throw(css::io::IOException, css::uno::RuntimeException);
+ void rawWrite( const css::uno::Sequence< sal_Int8 >& rBuffer );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void rawCloseEntry( bool bEncrypt = false )
- throw(css::io::IOException, css::uno::RuntimeException);
+ void rawCloseEntry( bool bEncrypt = false );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void finish()
- throw(css::io::IOException, css::uno::RuntimeException, std::exception);
+ void finish();
const css::uno::Reference< css::io::XOutputStream >& getStream();
static sal_uInt32 getCurrentDosTime();
@@ -74,16 +70,13 @@ public:
private:
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength)
- throw(css::io::IOException, css::uno::RuntimeException);
+ void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength);
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void writeCEN( const ZipEntry &rEntry )
- throw(css::io::IOException, css::uno::RuntimeException);
+ void writeCEN( const ZipEntry &rEntry );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
- void writeEXT( const ZipEntry &rEntry )
- throw(css::io::IOException, css::uno::RuntimeException);
+ void writeEXT( const ZipEntry &rEntry );
// ScheduledThread handling helpers
void consumeScheduledThreadEntry(ZipOutputEntry* pCandidate);
diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx
index 7dc01a9965cc..42f04801b643 100644
--- a/package/inc/ZipPackage.hxx
+++ b/package/inc/ZipPackage.hxx
@@ -132,54 +132,34 @@ public:
const css::uno::Sequence< sal_Int8 > GetEncryptionKey();
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XHierarchicalNameAccess
- virtual css::uno::Any SAL_CALL getByHierarchicalName( const OUString& aName )
- throw(css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString& aName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getByHierarchicalName( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString& aName ) override;
// XSingleServiceFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( )
- throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XChangesBatch
- virtual void SAL_CALL commitChanges( )
- throw(css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasPendingChanges( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< css::util::ElementChange > SAL_CALL getPendingChanges( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL commitChanges( ) override;
+ virtual sal_Bool SAL_CALL hasPendingChanges( ) override;
+ virtual css::uno::Sequence< css::util::ElementChange > SAL_CALL getPendingChanges( ) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
/// @throws css::uno::RuntimeException
- static css::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId()
- throw(css::uno::RuntimeException);
+ static css::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId();
// XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue )
- throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
+ virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
+ virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
+ virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
+ virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
// Uno componentiseralation
static OUString static_getImplementationName();
diff --git a/package/inc/ZipPackageBuffer.hxx b/package/inc/ZipPackageBuffer.hxx
index daac93d7c17f..8e3408800fc6 100644
--- a/package/inc/ZipPackageBuffer.hxx
+++ b/package/inc/ZipPackageBuffer.hxx
@@ -43,30 +43,19 @@ public:
const css::uno::Sequence < sal_Int8>& getSequence () const { return m_aBuffer; }
// XInputStream
- virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL available( )
- throw(css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL closeInput( )
- throw(css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) override;
+ virtual sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) override;
+ virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) override;
+ virtual sal_Int32 SAL_CALL available( ) override;
+ virtual void SAL_CALL closeInput( ) override;
// XOutputStream
- virtual void SAL_CALL writeBytes( const css::uno::Sequence< sal_Int8 >& aData )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL flush( )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL closeOutput( )
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL writeBytes( const css::uno::Sequence< sal_Int8 >& aData ) override;
+ virtual void SAL_CALL flush( ) override;
+ virtual void SAL_CALL closeOutput( ) override;
// XSeekable
- virtual void SAL_CALL seek( sal_Int64 location )
- throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int64 SAL_CALL getPosition( )
- throw(css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int64 SAL_CALL getLength( )
- throw(css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL seek( sal_Int64 location ) override;
+ virtual sal_Int64 SAL_CALL getPosition( ) override;
+ virtual sal_Int64 SAL_CALL getLength( ) override;
};
#endif
diff --git a/package/inc/ZipPackageEntry.hxx b/package/inc/ZipPackageEntry.hxx
index 1dc3539e234d..8860b832f479 100644
--- a/package/inc/ZipPackageEntry.hxx
+++ b/package/inc/ZipPackageEntry.hxx
@@ -77,33 +77,21 @@ public:
mpParent = nullptr;
}
// XNamed
- virtual OUString SAL_CALL getName( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setName( const OUString& aName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName( ) override;
+ virtual void SAL_CALL setName( const OUString& aName ) override;
// XChild
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent )
- throw(css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) override;
+ virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
- throw(css::uno::RuntimeException, std::exception) override = 0;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override = 0;
// XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue )
- throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override = 0;
- virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override = 0;
- virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override = 0;
+ virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override = 0;
+ virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
+ virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
+ virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
+ virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
};
#endif
diff --git a/package/inc/ZipPackageFolder.hxx b/package/inc/ZipPackageFolder.hxx
index 603fc3b94c22..fb6a072751ea 100644
--- a/package/inc/ZipPackageFolder.hxx
+++ b/package/inc/ZipPackageFolder.hxx
@@ -60,8 +60,7 @@ public:
/// @throws css::container::ElementExistException
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
- void doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent )
- throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ void doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent );
ZipContentInfo& doGetByName( const OUString& aName );
@@ -84,54 +83,38 @@ public:
std::vector < css::uno::Sequence < css::beans::PropertyValue > > &rManList,
ZipOutputStream & rZipOut,
const css::uno::Sequence< sal_Int8 > &rEncryptionKey,
- const rtlRandomPool & rRandomPool) const
- throw(css::uno::RuntimeException);
+ const rtlRandomPool & rRandomPool) const;
// XNameContainer
- virtual void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement )
- throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeByName( const OUString& Name )
- throw(css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement ) override;
+ virtual void SAL_CALL removeByName( const OUString& Name ) override;
// XEnumerationAccess
- virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
// XElementAccess
- virtual css::uno::Type SAL_CALL getElementType( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasElements( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Type SAL_CALL getElementType( ) override;
+ virtual sal_Bool SAL_CALL hasElements( ) override;
// XNameAccess
- virtual css::uno::Any SAL_CALL getByName( const OUString& aName )
- throw(css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasByName( const OUString& aName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) override;
+ virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
// XNameReplace
- virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement )
- throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) override;
// XPropertySet
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue )
- throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif
diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx
index 806e4089d2c6..ed0799779273 100644
--- a/package/inc/ZipPackageStream.hxx
+++ b/package/inc/ZipPackageStream.hxx
@@ -74,8 +74,7 @@ private:
/// Check that m_xStream implements io::XSeekable and return it
css::uno::Reference< css::io::XInputStream > const & GetOwnSeekStream();
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::io::XInputStream > SAL_CALL getRawData()
- throw(css::uno::RuntimeException);
+ css::uno::Reference< css::io::XInputStream > SAL_CALL getRawData();
public:
bool IsPackageMember () const { return m_nStreamMode == PACKAGE_STREAM_PACKAGEMEMBER;}
@@ -140,51 +139,29 @@ public:
static css::uno::Sequence < sal_Int8 > static_getImplementationId();
// XActiveDataSink
- virtual void SAL_CALL setInputStream( const css::uno::Reference< css::io::XInputStream >& aStream )
- throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setInputStream( const css::uno::Reference< css::io::XInputStream >& aStream ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream( ) override;
// XDataSinkEncrSupport
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getDataStream()
- throw ( css::packages::WrongPasswordException, css::packages::zip::ZipException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getRawStream()
- throw ( css::packages::NoEncryptionException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getDataStream() override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getRawStream() override;
virtual void SAL_CALL setDataStream(
- const css::uno::Reference< css::io::XInputStream >& aStream )
- throw ( css::io::IOException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::io::XInputStream >& aStream ) override;
virtual void SAL_CALL setRawStream(
- const css::uno::Reference< css::io::XInputStream >& aStream )
- throw ( css::packages::EncryptionNotAllowedException,
- css::packages::NoRawFormatException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getPlainRawStream()
- throw ( css::io::IOException, css::packages::NoEncryptionException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::io::XInputStream >& aStream ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getPlainRawStream() override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
// XPropertySet
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue )
- throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
- throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif
diff --git a/package/inc/zipfileaccess.hxx b/package/inc/zipfileaccess.hxx
index a073acf58106..b4c32af3e182 100644
--- a/package/inc/zipfileaccess.hxx
+++ b/package/inc/zipfileaccess.hxx
@@ -70,27 +70,27 @@ public:
const css::uno::Reference< css::lang::XMultiServiceFactory >& rxMSF );
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XNameAccess
- virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) override;
+ virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
+ virtual css::uno::Type SAL_CALL getElementType( ) override;
+ virtual sal_Bool SAL_CALL hasElements( ) override;
// XZipFileAccess
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getStreamByPattern( const OUString& aPattern ) throw (css::container::NoSuchElementException, css::io::IOException, css::uno::RuntimeException, css::packages::WrongPasswordException, css::packages::zip::ZipException, std::exception) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getStreamByPattern( const OUString& aPattern ) override;
// XComponent
- virtual void SAL_CALL dispose( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispose( ) override;
+ virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
+ virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};