diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:28:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:54:43 +0000 |
commit | e57ca02849c3d87142ff5ff9099a212e72b8139c (patch) | |
tree | bcce66b27261553c308779f3e8663a269ed3a671 /ucb/source/ucp | |
parent | 8802ebd5172ec4bc412a59d136c82b77ab452281 (diff) |
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 'ucb/source/ucp')
129 files changed, 872 insertions, 3289 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 65ba37d484fd..7d0ab609edce 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -287,7 +287,6 @@ namespace cmis Content::Content( const uno::Reference< uno::XComponentContext >& rxContext, ContentProvider *pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, libcmis::ObjectPtr const & pObject ) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_pProvider( pProvider ), m_pSession( nullptr ), @@ -306,7 +305,6 @@ namespace cmis Content::Content( const uno::Reference< uno::XComponentContext >& rxContext, ContentProvider *pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, bool bIsFolder ) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_pProvider( pProvider ), m_pSession( nullptr ), @@ -497,7 +495,7 @@ namespace cmis } - libcmis::ObjectPtr const & Content::getObject( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) throw (css::uno::RuntimeException, css::ucb::CommandFailedException, libcmis::Exception) + libcmis::ObjectPtr const & Content::getObject( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) { // can't get the session for some reason // the recent file opening at start up is an example. @@ -974,7 +972,6 @@ namespace cmis uno::Any Content::open(const ucb::OpenCommandArgument2 & rOpenCommand, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, libcmis::Exception ) { bool bIsFolder = isFolder( xEnv ); @@ -1042,7 +1039,6 @@ namespace cmis OUString Content::checkIn( const ucb::CheckinArgument& rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { ucbhelper::Content aSourceContent( rArg.SourceURL, xEnv, comphelper::getProcessComponentContext( ) ); uno::Reference< io::XInputStream > xIn = aSourceContent.openStream( ); @@ -1113,7 +1109,6 @@ namespace cmis } OUString Content::checkOut( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { OUString aRet; try @@ -1160,7 +1155,6 @@ namespace cmis } OUString Content::cancelCheckOut( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { OUString aRet; try @@ -1226,7 +1220,6 @@ namespace cmis } uno::Sequence< document::CmisVersion> Content::getAllVersions( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { try { @@ -1268,7 +1261,6 @@ namespace cmis void Content::transfer( const ucb::TransferInfo& rTransferInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { // If the source isn't on the same CMIS repository, then simply copy INetURLObject aSourceUrl( rTransferInfo.SourceURL ); @@ -1292,7 +1284,6 @@ namespace cmis void Content::insert( const uno::Reference< io::XInputStream > & xInputStream, bool bReplaceExisting, const OUString& rMimeType, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw (uno::Exception, std::exception) { if ( !xInputStream.is() ) { @@ -1736,25 +1727,24 @@ namespace cmis ContentImplHelper::release(); } - uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) throw ( uno::RuntimeException, std::exception ) + uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) { uno::Any aRet = cppu::queryInterface( rType, static_cast< ucb::XContentCreator * >( this ) ); return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface(rType); } - OUString SAL_CALL Content::getImplementationName() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL Content::getImplementationName() { return OUString("com.sun.star.comp.CmisContent"); } uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence<OUString> aSNS { "com.sun.star.ucb.CmisContent" }; return aSNS; } - OUString SAL_CALL Content::getContentType() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL Content::getContentType() { OUString sRet; try @@ -1781,7 +1771,6 @@ namespace cmis const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, ucb::CommandAbortedException, uno::RuntimeException, std::exception ) { SAL_INFO( "ucb.ucp.cmis", "Content::execute( ) - " << aCommand.Name ); uno::Any aRet; @@ -1906,20 +1895,19 @@ namespace cmis return aRet; } - void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) throw( uno::RuntimeException, std::exception ) + void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) { SAL_INFO( "ucb.ucp.cmis", "TODO - Content::abort()" ); // TODO Implement me } uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { return queryCreatableContentsInfo( uno::Reference< ucb::XCommandEnvironment >() ); } uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( - const ucb::ContentInfo& Info ) throw( uno::RuntimeException, std::exception ) + const ucb::ContentInfo& Info ) { bool create_document; @@ -1949,7 +1937,7 @@ namespace cmis } } - uno::Sequence< uno::Type > SAL_CALL Content::getTypes() throw( uno::RuntimeException, std::exception ) + uno::Sequence< uno::Type > SAL_CALL Content::getTypes() { try { @@ -1999,7 +1987,6 @@ namespace cmis uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo( const uno::Reference< ucb::XCommandEnvironment >& xEnv) - throw( uno::RuntimeException ) { try { diff --git a/ucb/source/ucp/cmis/cmis_content.hxx b/ucb/source/ucp/cmis/cmis_content.hxx index d7b1aec656f9..270a232ed556 100644 --- a/ucb/source/ucp/cmis/cmis_content.hxx +++ b/ucb/source/ucp/cmis/cmis_content.hxx @@ -89,32 +89,26 @@ private: /// @throws css::uno::Exception /// @throws libcmis::Exception css::uno::Any open(const css::ucb::OpenCommandArgument2 & rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, libcmis::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rTransferInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream > & xInputStream, bool bReplaceExisting, const OUString & rMimeType, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw (css::uno::Exception, std::exception); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception OUString checkIn( const css::ucb::CheckinArgument& rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception - OUString checkOut( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + OUString checkOut( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception - OUString cancelCheckOut( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + OUString cancelCheckOut( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); static void copyData( const css::uno::Reference< css::io::XInputStream >& xIn, const css::uno::Reference< css::io::XOutputStream >& xOut ); @@ -125,9 +119,7 @@ private: /// @throws css::uno::Exception css::uno::Sequence< css::document::CmisVersion > - getAllVersions( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw(css::uno::Exception, - std::exception); + getAllVersions( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); bool feedSink( const css::uno::Reference< css::uno::XInterface>& aSink, const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); @@ -137,15 +129,13 @@ public: Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - libcmis::ObjectPtr const & pObject = libcmis::ObjectPtr( ) ) - throw ( css::ucb::ContentCreationException ); + libcmis::ObjectPtr const & pObject = libcmis::ObjectPtr( ) ); /// @throws css::ucb::ContentCreationException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - bool bIsFolder) - throw ( css::ucb::ContentCreationException ); + bool bIsFolder); virtual ~Content() override; @@ -162,58 +152,47 @@ public: virtual OUString getParentURL() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, css::ucb::CommandAbortedException, css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; - virtual void SAL_CALL abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL abort( sal_Int32 CommandId ) override; virtual css::uno::Sequence< css::ucb::ContentInfo > - SAL_CALL queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + SAL_CALL queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > - SAL_CALL createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + SAL_CALL createNewContent( const css::ucb::ContentInfo& Info ) override; /// @throws css::uno::RuntimeException css::uno::Sequence< css::ucb::ContentInfo > - queryCreatableContentsInfo( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw( css::uno::RuntimeException ); + queryCreatableContentsInfo( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); virtual std::list< css::uno::Reference< css::ucb::XContent > > getChildren( ) override; /// @throws css::uno::RuntimeException /// @throws css::ucb::CommandFailedException /// @throws libcmis::Exception - libcmis::ObjectPtr const & getObject( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) throw (css::uno::RuntimeException, css::ucb::CommandFailedException, libcmis::Exception); + libcmis::ObjectPtr const & getObject( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); }; } diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.cxx b/ucb/source/ucp/cmis/cmis_datasupplier.cxx index 14b3385ec712..9f9fbae0cb0b 100644 --- a/ucb/source/ucp/cmis/cmis_datasupplier.cxx +++ b/ucb/source/ucp/cmis/cmis_datasupplier.cxx @@ -166,7 +166,7 @@ namespace cmis { } - void DataSupplier::validate() throw( ucb::ResultSetException ) + void DataSupplier::validate() { } diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.hxx b/ucb/source/ucp/cmis/cmis_datasupplier.hxx index 2e3dd1ba272b..619af90e355c 100644 --- a/ucb/source/ucp/cmis/cmis_datasupplier.hxx +++ b/ucb/source/ucp/cmis/cmis_datasupplier.hxx @@ -65,8 +65,7 @@ namespace cmis virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } diff --git a/ucb/source/ucp/cmis/cmis_provider.cxx b/ucb/source/ucp/cmis/cmis_provider.cxx index a022c44a2d3e..a906ac609d6f 100644 --- a/ucb/source/ucp/cmis/cmis_provider.cxx +++ b/ucb/source/ucp/cmis/cmis_provider.cxx @@ -23,8 +23,6 @@ namespace cmis uno::Reference< css::ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -103,7 +101,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -123,7 +120,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); diff --git a/ucb/source/ucp/cmis/cmis_provider.hxx b/ucb/source/ucp/cmis/cmis_provider.hxx index 3915c0664e81..cfca2923de13 100644 --- a/ucb/source/ucp/cmis/cmis_provider.hxx +++ b/ucb/source/ucp/cmis/cmis_provider.hxx @@ -27,26 +27,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -57,9 +51,7 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; libcmis::Session* getSession( const OUString& sBindingUrl, const OUString& sUsername ); void registerSession( const OUString& sBindingUrl, const OUString& sUsername, libcmis::Session* pSession ); diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx index b0726898cae7..a1a4bd0bedcd 100644 --- a/ucb/source/ucp/cmis/cmis_repo_content.cxx +++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx @@ -50,7 +50,6 @@ namespace cmis RepoContent::RepoContent( const uno::Reference< uno::XComponentContext >& rxContext, ContentProvider *pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, vector< libcmis::RepositoryPtr > const & aRepos ) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_pProvider( pProvider ), m_aURL( Identifier->getContentIdentifier( ) ), @@ -320,19 +319,18 @@ namespace cmis XTYPEPROVIDER_COMMON_IMPL( RepoContent ); - OUString SAL_CALL RepoContent::getImplementationName() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL RepoContent::getImplementationName() { return OUString("com.sun.star.comp.CmisRepoContent"); } uno::Sequence< OUString > SAL_CALL RepoContent::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence<OUString> aSNS { "com.sun.star.ucb.Content" }; return aSNS; } - OUString SAL_CALL RepoContent::getContentType() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL RepoContent::getContentType() { return OUString( CMIS_REPO_TYPE ); } @@ -341,7 +339,6 @@ namespace cmis const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, ucb::CommandAbortedException, uno::RuntimeException, std::exception ) { SAL_INFO( "ucb.ucp.cmis", "RepoContent::execute( ) - " << aCommand.Name ); @@ -378,13 +375,13 @@ namespace cmis return aRet; } - void SAL_CALL RepoContent::abort( sal_Int32 /*CommandId*/ ) throw( uno::RuntimeException, std::exception ) + void SAL_CALL RepoContent::abort( sal_Int32 /*CommandId*/ ) { SAL_INFO( "ucb.ucp.cmis", "TODO - RepoContent::abort()" ); // TODO Implement me } - uno::Sequence< uno::Type > SAL_CALL RepoContent::getTypes() throw( uno::RuntimeException, std::exception ) + uno::Sequence< uno::Type > SAL_CALL RepoContent::getTypes() { static cppu::OTypeCollection aFolderCollection (CPPU_TYPE_REF( lang::XTypeProvider ), diff --git a/ucb/source/ucp/cmis/cmis_repo_content.hxx b/ucb/source/ucp/cmis/cmis_repo_content.hxx index ba5f18154481..4be969ee1c24 100644 --- a/ucb/source/ucp/cmis/cmis_repo_content.hxx +++ b/ucb/source/ucp/cmis/cmis_repo_content.hxx @@ -76,8 +76,7 @@ public: RepoContent( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - std::vector< libcmis::RepositoryPtr > const & aRepos = std::vector< libcmis::RepositoryPtr > ( ) ) - throw ( css::ucb::ContentCreationException ); + std::vector< libcmis::RepositoryPtr > const & aRepos = std::vector< libcmis::RepositoryPtr > ( ) ); virtual ~RepoContent() override; @@ -91,31 +90,24 @@ public: // XInterface - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, css::ucb::CommandAbortedException, css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; - virtual void SAL_CALL abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL abort( sal_Int32 CommandId ) override; virtual std::list< css::uno::Reference< css::ucb::XContent > > getChildren( ) override; }; diff --git a/ucb/source/ucp/cmis/std_inputstream.cxx b/ucb/source/ucp/cmis/std_inputstream.cxx index 4a6b1c468d34..18f850545fc5 100644 --- a/ucb/source/ucp/cmis/std_inputstream.cxx +++ b/ucb/source/ucp/cmis/std_inputstream.cxx @@ -37,7 +37,7 @@ namespace cmis { } - uno::Any SAL_CALL StdInputStream::queryInterface( const uno::Type& rType ) throw ( uno::RuntimeException, std::exception ) + uno::Any SAL_CALL StdInputStream::queryInterface( const uno::Type& rType ) { uno::Any aRet = ::cppu::queryInterface( rType, ( static_cast< XInputStream* >( this ) ), @@ -57,8 +57,6 @@ namespace cmis } sal_Int32 SAL_CALL StdInputStream::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( m_aMutex ); @@ -85,8 +83,6 @@ namespace cmis sal_Int32 SAL_CALL StdInputStream::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( m_aMutex ); @@ -110,8 +106,6 @@ namespace cmis } void SAL_CALL StdInputStream::skipBytes( sal_Int32 nBytesToSkip ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -130,19 +124,16 @@ namespace cmis } sal_Int32 SAL_CALL StdInputStream::available( ) - throw(io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception ) { return sal::static_int_cast< sal_Int32 >( m_nLength - getPosition() ); } void SAL_CALL StdInputStream::closeInput( ) - throw( io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception) { // No need to implement this for an istream } void SAL_CALL StdInputStream::seek( sal_Int64 location ) - throw( lang::IllegalArgumentException, io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -167,7 +158,6 @@ namespace cmis } sal_Int64 SAL_CALL StdInputStream::getPosition( ) - throw( io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -182,7 +172,6 @@ namespace cmis } sal_Int64 SAL_CALL StdInputStream::getLength( ) - throw ( io::IOException, uno::RuntimeException, std::exception ) { return m_nLength; } diff --git a/ucb/source/ucp/cmis/std_inputstream.hxx b/ucb/source/ucp/cmis/std_inputstream.hxx index ba7338c76375..40596a33787a 100644 --- a/ucb/source/ucp/cmis/std_inputstream.hxx +++ b/ucb/source/ucp/cmis/std_inputstream.hxx @@ -36,8 +36,7 @@ namespace cmis virtual ~StdInputStream() override; - virtual css::uno::Any SAL_CALL queryInterface ( const css::uno::Type& rType ) - throw ( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface ( const css::uno::Type& rType ) override; virtual void SAL_CALL acquire( ) throw ( ) override; @@ -45,59 +44,35 @@ namespace cmis 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; + sal_Int32 nBytesToRead ) 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; + sal_Int32 nMaxBytesToRead ) 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; + skipBytes ( sal_Int32 nBytesToSkip ) override; virtual sal_Int32 SAL_CALL - available ( ) - throw ( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + available ( ) override; virtual void SAL_CALL - closeInput ( ) - throw ( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeInput ( ) override; /** XSeekable */ virtual void SAL_CALL - seek ( sal_Int64 location ) - throw ( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + seek ( sal_Int64 location ) override; virtual sal_Int64 SAL_CALL - getPosition ( ) - throw ( css::io::IOException, css::uno::RuntimeException, std::exception ) override; + getPosition ( ) override; virtual sal_Int64 SAL_CALL - getLength ( ) - throw ( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + getLength ( ) override; private: diff --git a/ucb/source/ucp/cmis/std_outputstream.cxx b/ucb/source/ucp/cmis/std_outputstream.cxx index c26f0ef30885..1cd4ec13350c 100644 --- a/ucb/source/ucp/cmis/std_outputstream.cxx +++ b/ucb/source/ucp/cmis/std_outputstream.cxx @@ -29,7 +29,7 @@ namespace cmis m_pStream->setstate( ios::eofbit ); } - uno::Any SAL_CALL StdOutputStream::queryInterface( const uno::Type& rType ) throw ( uno::RuntimeException, std::exception ) + uno::Any SAL_CALL StdOutputStream::queryInterface( const uno::Type& rType ) { uno::Any aRet = ::cppu::queryInterface( rType, ( static_cast< XOutputStream* >( this ) ) ); @@ -47,8 +47,6 @@ namespace cmis } void SAL_CALL StdOutputStream::writeBytes ( const uno::Sequence< sal_Int8 >& aData ) - throw ( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -67,8 +65,6 @@ namespace cmis } void SAL_CALL StdOutputStream::flush ( ) - throw ( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -87,8 +83,6 @@ namespace cmis } void SAL_CALL StdOutputStream::closeOutput ( ) - throw ( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/cmis/std_outputstream.hxx b/ucb/source/ucp/cmis/std_outputstream.hxx index 1521bbd211db..574948c7a546 100644 --- a/ucb/source/ucp/cmis/std_outputstream.hxx +++ b/ucb/source/ucp/cmis/std_outputstream.hxx @@ -33,30 +33,17 @@ namespace cmis virtual ~StdOutputStream( ) override; - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) - throw ( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override; virtual void SAL_CALL acquire ( ) throw ( ) override; virtual void SAL_CALL release ( ) throw ( ) override; - 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; private: diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx index 71ed084d30fa..9c6b4c2e4b0a 100644 --- a/ucb/source/ucp/expand/ucpexpand.cxx +++ b/ucb/source/ucp/expand/ucpexpand.cxx @@ -71,21 +71,16 @@ public: {} // XServiceInfo - virtual OUString SAL_CALL getImplementationName() - throw (uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName ) - throw (uno::RuntimeException, std::exception) override; - virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName ) override; + virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XContentProvider virtual uno::Reference< ucb::XContent > SAL_CALL queryContent( - uno::Reference< ucb::XContentIdentifier > const & xIdentifier ) - throw (ucb::IllegalIdentifierException, uno::RuntimeException, std::exception) override; + uno::Reference< ucb::XContentIdentifier > const & xIdentifier ) override; virtual sal_Int32 SAL_CALL compareContentIds( uno::Reference< ucb::XContentIdentifier > const & xId1, - uno::Reference< ucb::XContentIdentifier > const & xId2 ) - throw (uno::RuntimeException, std::exception) override; + uno::Reference< ucb::XContentIdentifier > const & xId2 ) override; }; @@ -134,7 +129,6 @@ uno::Sequence< OUString > SAL_CALL supportedServices() // XServiceInfo OUString ExpandContentProviderImpl::getImplementationName() - throw (uno::RuntimeException, std::exception) { check(); return implName(); @@ -142,14 +136,12 @@ OUString ExpandContentProviderImpl::getImplementationName() uno::Sequence< OUString > ExpandContentProviderImpl::getSupportedServiceNames() - throw (uno::RuntimeException, std::exception) { check(); return supportedServices(); } sal_Bool ExpandContentProviderImpl::supportsService(OUString const & serviceName ) - throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } @@ -178,7 +170,6 @@ OUString ExpandContentProviderImpl::expandUri( uno::Reference< ucb::XContent > ExpandContentProviderImpl::queryContent( uno::Reference< ucb::XContentIdentifier > const & xIdentifier ) - throw (ucb::IllegalIdentifierException, uno::RuntimeException, std::exception) { check(); OUString uri( expandUri( xIdentifier ) ); @@ -200,7 +191,6 @@ uno::Reference< ucb::XContent > ExpandContentProviderImpl::queryContent( sal_Int32 ExpandContentProviderImpl::compareContentIds( uno::Reference< ucb::XContentIdentifier > const & xId1, uno::Reference< ucb::XContentIdentifier > const & xId2 ) - throw (uno::RuntimeException, std::exception) { check(); try diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx index e7f52419935b..85a008dee62b 100644 --- a/ucb/source/ucp/ext/ucpext_content.cxx +++ b/ucb/source/ucp/ext/ucpext_content.cxx @@ -160,13 +160,13 @@ namespace ucb { namespace ucp { namespace ext } - OUString SAL_CALL Content::getImplementationName() throw( RuntimeException, std::exception ) + OUString SAL_CALL Content::getImplementationName() { return OUString( "org.openoffice.comp.ucp.ext.Content" ); } - Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() throw( RuntimeException, std::exception ) + Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() { Sequence< OUString > aServiceNames(2); aServiceNames[0] = "com.sun.star.ucb.Content"; @@ -175,7 +175,7 @@ namespace ucb { namespace ucp { namespace ext } - OUString SAL_CALL Content::getContentType() throw( RuntimeException, std::exception ) + OUString SAL_CALL Content::getContentType() { impl_determineContentType(); return *m_aContentType; @@ -183,7 +183,6 @@ namespace ucb { namespace ucp { namespace ext Any SAL_CALL Content::execute( const Command& aCommand, sal_Int32 /* CommandId */, const Reference< XCommandEnvironment >& i_rEvironment ) - throw( Exception, CommandAbortedException, RuntimeException, std::exception ) { Any aRet; @@ -274,7 +273,7 @@ namespace ucb { namespace ucp { namespace ext } - void SAL_CALL Content::abort( sal_Int32 ) throw( RuntimeException, std::exception ) + void SAL_CALL Content::abort( sal_Int32 ) { } diff --git a/ucb/source/ucp/ext/ucpext_content.hxx b/ucb/source/ucp/ext/ucpext_content.hxx index c01a330e1f1b..89c8498d36d8 100644 --- a/ucb/source/ucp/ext/ucpext_content.hxx +++ b/ucb/source/ucp/ext/ucpext_content.hxx @@ -89,11 +89,11 @@ namespace ucb { namespace ucp { namespace ext virtual ~Content() override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) 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 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; // XContent - virtual OUString SAL_CALL getContentType() throw( css::uno::RuntimeException, std::exception ) override; + virtual OUString SAL_CALL getContentType() override; // XCommandProcessor virtual css::uno::Any SAL_CALL @@ -101,18 +101,12 @@ namespace ucb { namespace ucp { namespace ext const css::ucb::Command& aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment - ) - throw ( css::uno::Exception - , css::ucb::CommandAbortedException - , css::uno::RuntimeException, std::exception - ) override; + ) override; virtual void SAL_CALL abort( sal_Int32 CommandId - ) - throw ( css::uno::RuntimeException, std::exception - ) override; + ) override; private: virtual css::uno::Sequence< css::beans::Property > getProperties( const css::uno::Reference< css::ucb::XCommandEnvironment >& i_rEnv ) override; diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx index ca437c51b2b5..1f8f0eb4af5d 100644 --- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx +++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx @@ -337,7 +337,7 @@ namespace ucb { namespace ucp { namespace ext } - void DataSupplier::validate() throw( ResultSetException ) + void DataSupplier::validate() { } diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.hxx b/ucb/source/ucp/ext/ucpext_datasupplier.hxx index b9a7fccb2d11..fe7effa5640f 100644 --- a/ucb/source/ucp/ext/ucpext_datasupplier.hxx +++ b/ucb/source/ucp/ext/ucpext_datasupplier.hxx @@ -65,7 +65,7 @@ namespace ucb { namespace ucp { namespace ext virtual void close() override; - virtual void validate() throw( css::ucb::ResultSetException ) override; + virtual void validate() override; private: std::unique_ptr< DataSupplier_Impl > m_pImpl; diff --git a/ucb/source/ucp/ext/ucpext_provider.cxx b/ucb/source/ucp/ext/ucpext_provider.cxx index 6da0f7fb8f5b..0d955baebda7 100644 --- a/ucb/source/ucp/ext/ucpext_provider.cxx +++ b/ucb/source/ucp/ext/ucpext_provider.cxx @@ -54,19 +54,19 @@ namespace ucb { namespace ucp { namespace ext } - OUString SAL_CALL ContentProvider::getImplementationName_static() throw (RuntimeException) + OUString SAL_CALL ContentProvider::getImplementationName_static() { return OUString( "org.openoffice.comp.ucp.ext.ContentProvider" ); } - OUString SAL_CALL ContentProvider::getImplementationName() throw (RuntimeException, std::exception) + OUString SAL_CALL ContentProvider::getImplementationName() { return getImplementationName_static(); } - Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames_static( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames_static( ) { Sequence< OUString > aServiceNames(2); aServiceNames[0] = "com.sun.star.ucb.ContentProvider"; @@ -75,7 +75,7 @@ namespace ucb { namespace ucp { namespace ext } - Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames( ) throw (RuntimeException, std::exception) + Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames( ) { return getSupportedServiceNames_static(); } @@ -112,7 +112,6 @@ namespace ucb { namespace ucp { namespace ext Reference< XContent > SAL_CALL ContentProvider::queryContent( const Reference< XContentIdentifier >& i_rIdentifier ) - throw( IllegalIdentifierException, RuntimeException, std::exception ) { // Check URL scheme... const OUString sScheme( "vnd.sun.star.extension" ); diff --git a/ucb/source/ucp/ext/ucpext_provider.hxx b/ucb/source/ucp/ext/ucpext_provider.hxx index af8d00c4f5fc..e69f827b33aa 100644 --- a/ucb/source/ucp/ext/ucpext_provider.hxx +++ b/ucb/source/ucp/ext/ucpext_provider.hxx @@ -37,18 +37,18 @@ namespace ucb { namespace ucp { namespace ext virtual ~ContentProvider() override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) 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 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; // XServiceInfo - static versions /// @throws css::uno::RuntimeException - static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException); + static OUString SAL_CALL getImplementationName_static( ); /// @throws css::uno::RuntimeException - static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static() throw (css::uno::RuntimeException); + static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static(); static css::uno::Reference< css::uno::XInterface > SAL_CALL Create( const css::uno::Reference< css::uno::XComponentContext >& i_rContext ); // XContentProvider - virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) throw (css::ucb::IllegalIdentifierException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; public: static OUString getRootURL(); diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index bafc57cab2d9..6f45334bc53f 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -153,7 +153,6 @@ BaseContent::release() Any SAL_CALL BaseContent::queryInterface( const Type& rType ) - throw( RuntimeException, std::exception ) { Any aRet = cppu::queryInterface( rType, (static_cast< lang::XComponent* >(this)), @@ -175,7 +174,6 @@ BaseContent::queryInterface( const Type& rType ) void SAL_CALL BaseContent::addEventListener( const Reference< lang::XEventListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -189,7 +187,6 @@ BaseContent::addEventListener( const Reference< lang::XEventListener >& Listener void SAL_CALL BaseContent::removeEventListener( const Reference< lang::XEventListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -200,7 +197,6 @@ BaseContent::removeEventListener( const Reference< lang::XEventListener >& Liste void SAL_CALL BaseContent::dispose() - throw( RuntimeException, std::exception ) { lang::EventObject aEvt; comphelper::OInterfaceContainerHelper2* pDisposeEventListeners; @@ -247,21 +243,18 @@ BaseContent::dispose() // XServiceInfo OUString SAL_CALL BaseContent::getImplementationName() - throw( RuntimeException, std::exception) { return OUString("com.sun.star.comp.ucb.FileContent"); } sal_Bool SAL_CALL BaseContent::supportsService( const OUString& ServiceName ) - throw( RuntimeException, std::exception) { return cppu::supportsService( this, ServiceName ); } Sequence< OUString > SAL_CALL BaseContent::getSupportedServiceNames() - throw( RuntimeException, std::exception ) { Sequence<OUString> ret { "com.sun.star.ucb.FileContent" }; return ret; @@ -286,7 +279,6 @@ XTYPEPROVIDER_IMPL_10( BaseContent, sal_Int32 SAL_CALL BaseContent::createCommandIdentifier() - throw( RuntimeException, std::exception ) { return m_pMyShell->getCommandId(); } @@ -294,7 +286,6 @@ BaseContent::createCommandIdentifier() void SAL_CALL BaseContent::abort( sal_Int32 CommandId ) - throw( RuntimeException, std::exception ) { m_pMyShell->abort( CommandId ); } @@ -304,9 +295,6 @@ Any SAL_CALL BaseContent::execute( const Command& aCommand, sal_Int32 CommandId, const Reference< XCommandEnvironment >& Environment ) - throw( Exception, - CommandAbortedException, - RuntimeException, std::exception ) { if( ! CommandId ) // A Command with commandid zero cannot be aborted @@ -423,7 +411,6 @@ void SAL_CALL BaseContent::addPropertiesChangeListener( const Sequence< OUString >& PropertyNames, const Reference< beans::XPropertiesChangeListener >& Listener ) - throw( RuntimeException, std::exception ) { if( ! Listener.is() ) return; @@ -449,7 +436,6 @@ BaseContent::addPropertiesChangeListener( void SAL_CALL BaseContent::removePropertiesChangeListener( const Sequence< OUString >& PropertyNames, const Reference< beans::XPropertiesChangeListener >& Listener ) - throw( RuntimeException, std::exception ) { if( ! Listener.is() ) return; @@ -471,7 +457,6 @@ BaseContent::removePropertiesChangeListener( const Sequence< OUString >& Propert Reference< ucb::XContentIdentifier > SAL_CALL BaseContent::getIdentifier() - throw( RuntimeException, std::exception ) { return m_xContentIdentifier; } @@ -479,7 +464,6 @@ BaseContent::getIdentifier() OUString SAL_CALL BaseContent::getContentType() - throw( RuntimeException, std::exception ) { if( !( m_nState & Deleted ) ) { @@ -529,7 +513,6 @@ BaseContent::getContentType() void SAL_CALL BaseContent::addContentEventListener( const Reference< XContentEventListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -545,7 +528,6 @@ BaseContent::addContentEventListener( void SAL_CALL BaseContent::removeContentEventListener( const Reference< XContentEventListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -562,10 +544,6 @@ BaseContent::addProperty( const OUString& Name, sal_Int16 Attributes, const Any& DefaultValue ) - throw( beans::PropertyExistException, - beans::IllegalTypeException, - lang::IllegalArgumentException, - RuntimeException, std::exception) { if( ( m_nState & JustInserted ) || ( m_nState & Deleted ) || Name.isEmpty() ) { @@ -578,9 +556,6 @@ BaseContent::addProperty( void SAL_CALL BaseContent::removeProperty( const OUString& Name ) - throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - RuntimeException, std::exception) { if( m_nState & Deleted ) @@ -595,7 +570,6 @@ BaseContent::removeProperty( const OUString& Name ) Sequence< ContentInfo > SAL_CALL BaseContent::queryCreatableContentsInfo() - throw( RuntimeException, std::exception ) { return m_pMyShell->queryCreatableContentsInfo(); } @@ -603,7 +577,6 @@ BaseContent::queryCreatableContentsInfo() Reference< XContent > SAL_CALL BaseContent::createNewContent( const ContentInfo& Info ) - throw( RuntimeException, std::exception ) { // Check type. if ( Info.Type.isEmpty() ) @@ -666,7 +639,6 @@ BaseContent::createNewContent( const ContentInfo& Info ) void SAL_CALL BaseContent::addPropertySetInfoChangeListener( const Reference< beans::XPropertySetInfoChangeListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); if( ! m_pPropertySetInfoChangeListeners ) @@ -679,7 +651,6 @@ BaseContent::addPropertySetInfoChangeListener( void SAL_CALL BaseContent::removePropertySetInfoChangeListener( const Reference< beans::XPropertySetInfoChangeListener >& Listener ) - throw( RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -693,7 +664,6 @@ BaseContent::removePropertySetInfoChangeListener( Reference< XInterface > SAL_CALL BaseContent::getParent() - throw( RuntimeException, std::exception ) { OUString ParentUnq = getParentName( m_aUncPath ); OUString ParentUrl; @@ -720,8 +690,6 @@ BaseContent::getParent() void SAL_CALL BaseContent::setParent( const Reference< XInterface >& ) - throw( lang::NoSupportException, - RuntimeException, std::exception) { throw lang::NoSupportException( THROW_WHERE ); } @@ -732,7 +700,6 @@ BaseContent::setParent( Reference< XCommandInfo > SAL_CALL BaseContent::getCommandInfo() - throw( RuntimeException ) { if( m_nState & Deleted ) return Reference< XCommandInfo >(); @@ -744,7 +711,6 @@ BaseContent::getCommandInfo() Reference< beans::XPropertySetInfo > SAL_CALL BaseContent::getPropertySetInfo( sal_Int32 ) - throw( RuntimeException ) { if( m_nState & Deleted ) return Reference< beans::XPropertySetInfo >(); @@ -756,7 +722,6 @@ Reference< sdbc::XRow > SAL_CALL BaseContent::getPropertyValues( sal_Int32 nMyCommandIdentifier, const Sequence< beans::Property >& PropertySet ) - throw( RuntimeException, std::exception ) { sal_Int32 nProps = PropertySet.getLength(); if ( !nProps ) diff --git a/ucb/source/ucp/file/bc.hxx b/ucb/source/ucp/file/bc.hxx index 75ebdbd0cd9b..e6d82ad6f393 100644 --- a/ucb/source/ucp/file/bc.hxx +++ b/ucb/source/ucp/file/bc.hxx @@ -88,8 +88,7 @@ namespace fileaccess { // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw( css::uno::RuntimeException, std::exception) override; + queryInterface( const css::uno::Type& aType ) override; virtual void SAL_CALL acquire() @@ -102,91 +101,72 @@ namespace fileaccess { // XComponent virtual void SAL_CALL - dispose() - throw( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL addEventListener( - const css::uno::Reference< css::lang::XEventListener >& xListener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception) override; + getImplementationName() override; virtual sal_Bool SAL_CALL - supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException, std::exception) override; + supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XCommandProcessor virtual sal_Int32 SAL_CALL - createCommandIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + createCommandIdentifier() override; virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + abort( sal_Int32 CommandId ) override; // XContent virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL - getIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + getIdentifier() override; virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual void SAL_CALL addContentEventListener( - const css::uno::Reference< css::ucb::XContentEventListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XContentEventListener >& Listener ) override; virtual void SAL_CALL removeContentEventListener( - const css::uno::Reference< css::ucb::XContentEventListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XContentEventListener >& Listener ) override; // XPropertiesChangeNotifier virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& PropertyNames, - const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) override; virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Sequence< OUString >& PropertyNames, - const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) override; // XPropertyContainer @@ -194,51 +174,38 @@ namespace fileaccess { addProperty( const OUString& Name, sal_Int16 Attributes, - const css::uno::Any& DefaultValue ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::lang::IllegalArgumentException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Any& DefaultValue ) override; virtual void SAL_CALL - removeProperty( const OUString& Name ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException, std::exception ) override; + removeProperty( const OUString& Name ) override; // XPropertySetInfoChangeNotifier virtual void SAL_CALL addPropertySetInfoChangeListener( - const css::uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) override; virtual void SAL_CALL removePropertySetInfoChangeListener( - const css::uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) override; // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // XChild virtual css::uno::Reference< css::uno::XInterface > SAL_CALL - getParent() throw( css::uno::RuntimeException, std::exception ) override; + getParent() override; // Not supported virtual void SAL_CALL - setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) - throw( css::lang::NoSupportException, - css::uno::RuntimeException, std::exception) override; + setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override; // Notifier @@ -274,21 +241,18 @@ namespace fileaccess { // Private Methods /// @throws css::uno::RuntimeException css::uno::Reference< css::ucb::XCommandInfo > SAL_CALL - getCommandInfo() - throw( css::uno::RuntimeException ); + getCommandInfo(); /// @throws css::uno::RuntimeException css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( - sal_Int32 nMyCommandIdentifier ) - throw( css::uno::RuntimeException ); + sal_Int32 nMyCommandIdentifier ); /// @throws css::uno::RuntimeException css::uno::Reference< css::sdbc::XRow > SAL_CALL getPropertyValues( sal_Int32 nMyCommandIdentifier, - const css::uno::Sequence< css::beans::Property >& PropertySet ) - throw( css::uno::RuntimeException, std::exception ); + const css::uno::Sequence< css::beans::Property >& PropertySet ); css::uno::Sequence< css::uno::Any > SAL_CALL setPropertyValues( diff --git a/ucb/source/ucp/file/filcmd.cxx b/ucb/source/ucp/file/filcmd.cxx index daa4e7415918..72c67f1557c7 100644 --- a/ucb/source/ucp/file/filcmd.cxx +++ b/ucb/source/ucp/file/filcmd.cxx @@ -59,7 +59,6 @@ XCommandInfo_impl::release() uno::Any SAL_CALL XCommandInfo_impl::queryInterface( const uno::Type& rType ) - throw( uno::RuntimeException, std::exception ) { uno::Any aRet = cppu::queryInterface( rType, (static_cast< XCommandInfo* >(this)) ); @@ -69,7 +68,6 @@ XCommandInfo_impl::queryInterface( const uno::Type& rType ) uno::Sequence< CommandInfo > SAL_CALL XCommandInfo_impl::getCommands() - throw( uno::RuntimeException, std::exception ) { return m_pMyShell->m_sCommandInfo; } @@ -78,8 +76,6 @@ XCommandInfo_impl::getCommands() CommandInfo SAL_CALL XCommandInfo_impl::getCommandInfoByName( const OUString& aName ) - throw( UnsupportedCommandException, - uno::RuntimeException, std::exception) { for( sal_Int32 i = 0; i < m_pMyShell->m_sCommandInfo.getLength(); i++ ) if( m_pMyShell->m_sCommandInfo[i].Name == aName ) @@ -92,8 +88,6 @@ XCommandInfo_impl::getCommandInfoByName( CommandInfo SAL_CALL XCommandInfo_impl::getCommandInfoByHandle( sal_Int32 Handle ) - throw( UnsupportedCommandException, - uno::RuntimeException, std::exception ) { for( sal_Int32 i = 0; i < m_pMyShell->m_sCommandInfo.getLength(); ++i ) if( m_pMyShell->m_sCommandInfo[i].Handle == Handle ) @@ -106,7 +100,6 @@ XCommandInfo_impl::getCommandInfoByHandle( sal_Bool SAL_CALL XCommandInfo_impl::hasCommandByName( const OUString& aName ) - throw( uno::RuntimeException, std::exception ) { for( sal_Int32 i = 0; i < m_pMyShell->m_sCommandInfo.getLength(); ++i ) if( m_pMyShell->m_sCommandInfo[i].Name == aName ) @@ -119,7 +112,6 @@ XCommandInfo_impl::hasCommandByName( sal_Bool SAL_CALL XCommandInfo_impl::hasCommandByHandle( sal_Int32 Handle ) - throw( uno::RuntimeException, std::exception ) { for( sal_Int32 i = 0; i < m_pMyShell->m_sCommandInfo.getLength(); ++i ) if( m_pMyShell->m_sCommandInfo[i].Handle == Handle ) diff --git a/ucb/source/ucp/file/filcmd.hxx b/ucb/source/ucp/file/filcmd.hxx index c9b686c49408..a42bc2422730 100644 --- a/ucb/source/ucp/file/filcmd.hxx +++ b/ucb/source/ucp/file/filcmd.hxx @@ -45,8 +45,7 @@ namespace fileaccess { // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw( css::uno::RuntimeException, std::exception) override; + queryInterface( const css::uno::Type& aType ) override; virtual void SAL_CALL acquire() @@ -59,26 +58,19 @@ namespace fileaccess { // XCommandInfo virtual css::uno::Sequence< css::ucb::CommandInfo > SAL_CALL - getCommands() - throw( css::uno::RuntimeException, std::exception) override; + getCommands() override; virtual css::ucb::CommandInfo SAL_CALL - getCommandInfoByName( const OUString& Name ) - throw( css::ucb::UnsupportedCommandException, - css::uno::RuntimeException, std::exception) override; + getCommandInfoByName( const OUString& Name ) override; virtual css::ucb::CommandInfo SAL_CALL - getCommandInfoByHandle( sal_Int32 Handle ) - throw( css::ucb::UnsupportedCommandException, - css::uno::RuntimeException, std::exception ) override; + getCommandInfoByHandle( sal_Int32 Handle ) override; virtual sal_Bool SAL_CALL - hasCommandByName( const OUString& Name ) - throw( css::uno::RuntimeException, std::exception ) override; + hasCommandByName( const OUString& Name ) override; virtual sal_Bool SAL_CALL - hasCommandByHandle( sal_Int32 Handle ) - throw( css::uno::RuntimeException, std::exception ) override; + hasCommandByHandle( sal_Int32 Handle ) override; private: diff --git a/ucb/source/ucp/file/filid.cxx b/ucb/source/ucp/file/filid.cxx index 5ef3565c8988..220d19fbd1f2 100644 --- a/ucb/source/ucp/file/filid.cxx +++ b/ucb/source/ucp/file/filid.cxx @@ -68,7 +68,6 @@ FileContentIdentifier::release() uno::Any SAL_CALL FileContentIdentifier::queryInterface( const uno::Type& rType ) - throw( uno::RuntimeException, std::exception ) { uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -79,7 +78,6 @@ FileContentIdentifier::queryInterface( const uno::Type& rType ) uno::Sequence< sal_Int8 > SAL_CALL FileContentIdentifier::getImplementationId() - throw( uno::RuntimeException, std::exception ) { return css::uno::Sequence<sal_Int8>(); } @@ -87,7 +85,6 @@ FileContentIdentifier::getImplementationId() uno::Sequence< uno::Type > SAL_CALL FileContentIdentifier::getTypes() - throw( uno::RuntimeException, std::exception ) { static cppu::OTypeCollection* pCollection = nullptr; if ( !pCollection ) { @@ -107,7 +104,6 @@ FileContentIdentifier::getTypes() OUString SAL_CALL FileContentIdentifier::getContentIdentifier() - throw( uno::RuntimeException, std::exception ) { return m_aContentId; } @@ -115,7 +111,6 @@ FileContentIdentifier::getContentIdentifier() OUString SAL_CALL FileContentIdentifier::getContentProviderScheme() - throw( uno::RuntimeException, std::exception ) { return m_aProviderScheme; } diff --git a/ucb/source/ucp/file/filid.hxx b/ucb/source/ucp/file/filid.hxx index be04b008670c..428d4b4d91cc 100644 --- a/ucb/source/ucp/file/filid.hxx +++ b/ucb/source/ucp/file/filid.hxx @@ -43,8 +43,7 @@ namespace fileaccess { // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw( css::uno::RuntimeException, std::exception ) override; + queryInterface( const css::uno::Type& aType ) override; virtual void SAL_CALL acquire() @@ -56,21 +55,17 @@ namespace fileaccess { // XTypeProvider virtual css::uno::Sequence< css::uno::Type > SAL_CALL - getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + getTypes() override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationId() override; // XContentIdentifier virtual OUString SAL_CALL - getContentIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + getContentIdentifier() override; virtual OUString SAL_CALL - getContentProviderScheme() - throw( css::uno::RuntimeException, std::exception ) override; + getContentProviderScheme() override; private: OUString m_aContentId; // The URL string diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx index 9b6d560e8c01..afbc02c950eb 100644 --- a/ucb/source/ucp/file/filinpstr.cxx +++ b/ucb/source/ucp/file/filinpstr.cxx @@ -83,7 +83,6 @@ XTYPEPROVIDER_IMPL_3( XInputStream_impl, uno::Any SAL_CALL XInputStream_impl::queryInterface( const uno::Type& rType ) - throw( uno::RuntimeException, std::exception) { uno::Any aRet = cppu::queryInterface( rType, (static_cast< io::XInputStream* >(this)), @@ -113,10 +112,6 @@ sal_Int32 SAL_CALL XInputStream_impl::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { if( ! m_nIsOpen ) throw io::IOException( THROW_WHERE ); @@ -141,10 +136,6 @@ sal_Int32 SAL_CALL XInputStream_impl::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { return readBytes( aData,nMaxBytesToRead ); } @@ -152,10 +143,6 @@ XInputStream_impl::readSomeBytes( void SAL_CALL XInputStream_impl::skipBytes( sal_Int32 nBytesToSkip ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { m_aFile.setPos( osl_Pos_Current, sal_uInt64( nBytesToSkip ) ); } @@ -163,9 +150,6 @@ XInputStream_impl::skipBytes( sal_Int32 nBytesToSkip ) sal_Int32 SAL_CALL XInputStream_impl::available() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception) { return 0; } @@ -173,9 +157,6 @@ XInputStream_impl::available() void SAL_CALL XInputStream_impl::closeInput() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { if( m_nIsOpen ) { @@ -189,9 +170,6 @@ XInputStream_impl::closeInput() void SAL_CALL XInputStream_impl::seek( sal_Int64 location ) - throw( lang::IllegalArgumentException, - io::IOException, - uno::RuntimeException, std::exception ) { if( location < 0 ) throw lang::IllegalArgumentException( THROW_WHERE, uno::Reference< uno::XInterface >(), 0 ); @@ -202,8 +180,6 @@ XInputStream_impl::seek( sal_Int64 location ) sal_Int64 SAL_CALL XInputStream_impl::getPosition() - throw( io::IOException, - uno::RuntimeException, std::exception ) { sal_uInt64 uPos; if( osl::FileBase::E_None != m_aFile.getPos( uPos ) ) @@ -213,8 +189,6 @@ XInputStream_impl::getPosition() sal_Int64 SAL_CALL XInputStream_impl::getLength() - throw( io::IOException, - uno::RuntimeException, std::exception ) { sal_uInt64 uEndPos; if ( m_aFile.getSize(uEndPos) != osl::FileBase::E_None ) diff --git a/ucb/source/ucp/file/filinpstr.hxx b/ucb/source/ucp/file/filinpstr.hxx index 8dc6c28db4e6..4e2c622e82b9 100644 --- a/ucb/source/ucp/file/filinpstr.hxx +++ b/ucb/source/ucp/file/filinpstr.hxx @@ -56,14 +56,11 @@ namespace fileaccess { // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& rType ) - throw( css::uno::RuntimeException, std::exception) override; + queryInterface( const css::uno::Type& rType ) override; virtual void SAL_CALL acquire() @@ -76,55 +73,30 @@ namespace fileaccess { 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; + sal_Int32 nBytesToRead ) 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; + sal_Int32 nMaxBytesToRead ) 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; + skipBytes( sal_Int32 nBytesToSkip ) override; virtual sal_Int32 SAL_CALL - available() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + available() override; virtual void SAL_CALL - closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeInput() override; virtual void SAL_CALL - seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + seek( sal_Int64 location ) override; virtual sal_Int64 SAL_CALL - getPosition() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + getPosition() override; virtual sal_Int64 SAL_CALL - getLength() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + getLength() override; private: diff --git a/ucb/source/ucp/file/filinsreq.hxx b/ucb/source/ucp/file/filinsreq.hxx index 549f008daaa0..93c526f3571d 100644 --- a/ucb/source/ucp/file/filinsreq.hxx +++ b/ucb/source/ucp/file/filinsreq.hxx @@ -45,14 +45,12 @@ class XInteractionSupplyNameImpl : public cppu::WeakImplHelper< { } - virtual void SAL_CALL select() - throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL select() override { m_bSelected = true; } - void SAL_CALL setName(const OUString& Name) - throw(css::uno::RuntimeException, std::exception) override + void SAL_CALL setName(const OUString& Name) override { m_aNewName = Name; } @@ -84,8 +82,7 @@ class XInteractionSupplyNameImpl : public cppu::WeakImplHelper< { } - virtual void SAL_CALL select() - throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL select() override { m_bSelected = true; } diff --git a/ucb/source/ucp/file/filprp.cxx b/ucb/source/ucp/file/filprp.cxx index be7fbecfeb64..179eb487098a 100644 --- a/ucb/source/ucp/file/filprp.cxx +++ b/ucb/source/ucp/file/filprp.cxx @@ -76,8 +76,6 @@ XPropertySetInfo_impl::~XPropertySetInfo_impl() beans::Property SAL_CALL XPropertySetInfo_impl::getPropertyByName( const OUString& aName ) - throw( beans::UnknownPropertyException, - RuntimeException, std::exception) { for( sal_Int32 i = 0; i < m_seq.getLength(); ++i ) if( m_seq[i].Name == aName ) return m_seq[i]; @@ -88,7 +86,6 @@ XPropertySetInfo_impl::getPropertyByName( const OUString& aName ) Sequence< beans::Property > SAL_CALL XPropertySetInfo_impl::getProperties() - throw( RuntimeException, std::exception ) { return m_seq; } @@ -96,7 +93,6 @@ XPropertySetInfo_impl::getProperties() sal_Bool SAL_CALL XPropertySetInfo_impl::hasPropertyByName( const OUString& aName ) - throw( RuntimeException, std::exception ) { for( sal_Int32 i = 0; i < m_seq.getLength(); ++i ) if( m_seq[i].Name == aName ) return true; diff --git a/ucb/source/ucp/file/filprp.hxx b/ucb/source/ucp/file/filprp.hxx index 0a9208d4ab3a..1be9af995c7d 100644 --- a/ucb/source/ucp/file/filprp.hxx +++ b/ucb/source/ucp/file/filprp.hxx @@ -38,17 +38,13 @@ class XPropertySetInfo_impl : public cppu::WeakImplHelper< virtual ~XPropertySetInfo_impl() override; virtual css::uno::Sequence< css::beans::Property > SAL_CALL - getProperties() - throw( css::uno::RuntimeException, std::exception ) override; + getProperties() override; virtual css::beans::Property SAL_CALL - getPropertyByName( const OUString& aName ) - throw( css::beans::UnknownPropertyException, - css::uno::RuntimeException, std::exception) override; + getPropertyByName( const OUString& aName ) override; virtual sal_Bool SAL_CALL - hasPropertyByName( const OUString& Name ) - throw( css::uno::RuntimeException, std::exception ) override; + hasPropertyByName( const OUString& Name ) override; private: TaskManager* m_pMyShell; diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx index e79555f1043c..47fa98e8f278 100644 --- a/ucb/source/ucp/file/filrow.cxx +++ b/ucb/source/ucp/file/filrow.cxx @@ -90,8 +90,6 @@ XRow_impl::~XRow_impl() sal_Bool SAL_CALL XRow_impl::wasNull() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { return m_nWasNull; } @@ -100,8 +98,6 @@ XRow_impl::wasNull() OUString SAL_CALL XRow_impl::getString( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -114,8 +110,6 @@ XRow_impl::getString( sal_Bool SAL_CALL XRow_impl::getBoolean( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -129,8 +123,6 @@ XRow_impl::getBoolean( sal_Int8 SAL_CALL XRow_impl::getByte( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -143,8 +135,6 @@ XRow_impl::getByte( sal_Int16 SAL_CALL XRow_impl::getShort( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -158,8 +148,6 @@ XRow_impl::getShort( sal_Int32 SAL_CALL XRow_impl::getInt( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -172,8 +160,6 @@ XRow_impl::getInt( sal_Int64 SAL_CALL XRow_impl::getLong( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -186,8 +172,6 @@ XRow_impl::getLong( float SAL_CALL XRow_impl::getFloat( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -200,8 +184,6 @@ XRow_impl::getFloat( double SAL_CALL XRow_impl::getDouble( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -214,8 +196,6 @@ XRow_impl::getDouble( uno::Sequence< sal_Int8 > SAL_CALL XRow_impl::getBytes( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -228,8 +208,6 @@ XRow_impl::getBytes( util::Date SAL_CALL XRow_impl::getDate( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -242,8 +220,6 @@ XRow_impl::getDate( util::Time SAL_CALL XRow_impl::getTime( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -256,8 +232,6 @@ XRow_impl::getTime( util::DateTime SAL_CALL XRow_impl::getTimestamp( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -271,8 +245,6 @@ XRow_impl::getTimestamp( uno::Reference< io::XInputStream > SAL_CALL XRow_impl::getBinaryStream( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -286,8 +258,6 @@ XRow_impl::getBinaryStream( uno::Reference< io::XInputStream > SAL_CALL XRow_impl::getCharacterStream( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -302,8 +272,6 @@ uno::Any SAL_CALL XRow_impl::getObject( sal_Int32 columnIndex, const uno::Reference< container::XNameAccess >& ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -316,8 +284,6 @@ XRow_impl::getObject( uno::Reference< sdbc::XRef > SAL_CALL XRow_impl::getRef( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -333,8 +299,6 @@ XRow_impl::getRef( uno::Reference< sdbc::XBlob > SAL_CALL XRow_impl::getBlob( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -350,8 +314,6 @@ XRow_impl::getBlob( uno::Reference< sdbc::XClob > SAL_CALL XRow_impl::getClob( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -368,8 +330,6 @@ XRow_impl::getClob( uno::Reference< sdbc::XArray > SAL_CALL XRow_impl::getArray( sal_Int32 columnIndex ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); diff --git a/ucb/source/ucp/file/filrow.hxx b/ucb/source/ucp/file/filrow.hxx index 866627509d4b..589a5ad49f45 100644 --- a/ucb/source/ucp/file/filrow.hxx +++ b/ucb/source/ucp/file/filrow.hxx @@ -36,108 +36,67 @@ namespace fileaccess { virtual ~XRow_impl() override; virtual sal_Bool SAL_CALL - wasNull() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override; + wasNull() override; virtual OUString SAL_CALL - getString( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getString( sal_Int32 columnIndex ) override; virtual sal_Bool SAL_CALL - getBoolean( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getBoolean( sal_Int32 columnIndex ) override; virtual sal_Int8 SAL_CALL - getByte( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getByte( sal_Int32 columnIndex ) override; virtual sal_Int16 SAL_CALL - getShort( sal_Int32 columnIndex ) - throw( - css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override; + getShort( sal_Int32 columnIndex ) override; virtual sal_Int32 SAL_CALL - getInt( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override; + getInt( sal_Int32 columnIndex ) override; virtual sal_Int64 SAL_CALL - getLong( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override; + getLong( sal_Int32 columnIndex ) override; virtual float SAL_CALL - getFloat( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getFloat( sal_Int32 columnIndex ) override; virtual double SAL_CALL getDouble( - sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + sal_Int32 columnIndex ) override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getBytes( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getBytes( sal_Int32 columnIndex ) override; virtual css::util::Date SAL_CALL - getDate( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getDate( sal_Int32 columnIndex ) override; virtual css::util::Time SAL_CALL - getTime( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getTime( sal_Int32 columnIndex ) override; virtual css::util::DateTime SAL_CALL - getTimestamp( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getTimestamp( sal_Int32 columnIndex ) override; virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getBinaryStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getBinaryStream( sal_Int32 columnIndex ) override; virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getCharacterStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getCharacterStream( sal_Int32 columnIndex ) override; virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, - const css::uno::Reference< css::container::XNameAccess >& typeMap ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::container::XNameAccess >& typeMap ) override; virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL - getRef( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getRef( sal_Int32 columnIndex ) override; virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL - getBlob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getBlob( sal_Int32 columnIndex ) override; virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL - getClob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getClob( sal_Int32 columnIndex ) override; virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL - getArray( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getArray( sal_Int32 columnIndex ) override; private: osl::Mutex m_aMutex; diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx index f677e8588b78..6d9f19b35f60 100644 --- a/ucb/source/ucp/file/filrset.cxx +++ b/ucb/source/ucp/file/filrset.cxx @@ -92,7 +92,6 @@ XResultSet_impl::~XResultSet_impl() void SAL_CALL XResultSet_impl::disposing( const lang::EventObject& ) - throw( uno::RuntimeException, std::exception ) { // To do, but what } @@ -101,7 +100,6 @@ XResultSet_impl::disposing( const lang::EventObject& ) void SAL_CALL XResultSet_impl::addEventListener( const uno::Reference< lang::XEventListener >& Listener ) - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -116,7 +114,6 @@ XResultSet_impl::addEventListener( void SAL_CALL XResultSet_impl::removeEventListener( const uno::Reference< lang::XEventListener >& Listener ) - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -127,7 +124,6 @@ XResultSet_impl::removeEventListener( void SAL_CALL XResultSet_impl::dispose() - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -205,9 +201,6 @@ void XResultSet_impl::isFinalChanged() bool SAL_CALL XResultSet_impl::OneMore() - throw( sdbc::SQLException, - uno::RuntimeException, - std::exception ) { if( ! m_nIsOpen ) return false; @@ -283,8 +276,6 @@ XResultSet_impl::OneMore() sal_Bool SAL_CALL XResultSet_impl::next() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { bool test; if( ++m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) test = true; @@ -296,8 +287,6 @@ XResultSet_impl::next() sal_Bool SAL_CALL XResultSet_impl::isBeforeFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow == -1; } @@ -305,8 +294,6 @@ XResultSet_impl::isBeforeFirst() sal_Bool SAL_CALL XResultSet_impl::isAfterLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow >= sal::static_int_cast<sal_Int32>(m_aItems.size()); // Cannot happen, if m_aFolder.isOpen() } @@ -314,8 +301,6 @@ XResultSet_impl::isAfterLast() sal_Bool SAL_CALL XResultSet_impl::isFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow == 0; } @@ -323,8 +308,6 @@ XResultSet_impl::isFirst() sal_Bool SAL_CALL XResultSet_impl::isLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( m_nRow == sal::static_int_cast<sal_Int32>(m_aItems.size()) - 1 ) return ! OneMore(); @@ -335,8 +318,6 @@ XResultSet_impl::isLast() void SAL_CALL XResultSet_impl::beforeFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { m_nRow = -1; } @@ -344,8 +325,6 @@ XResultSet_impl::beforeFirst() void SAL_CALL XResultSet_impl::afterLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { m_nRow = sal::static_int_cast<sal_Int32>(m_aItems.size()); while( OneMore() ) @@ -355,8 +334,6 @@ XResultSet_impl::afterLast() sal_Bool SAL_CALL XResultSet_impl::first() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { m_nRow = -1; return next(); @@ -365,8 +342,6 @@ XResultSet_impl::first() sal_Bool SAL_CALL XResultSet_impl::last() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { m_nRow = sal::static_int_cast<sal_Int32>(m_aItems.size()) - 1; while( OneMore() ) @@ -377,8 +352,6 @@ XResultSet_impl::last() sal_Int32 SAL_CALL XResultSet_impl::getRow() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { // Test, whether behind last row if( -1 == m_nRow || m_nRow >= sal::static_int_cast<sal_Int32>(m_aItems.size()) ) @@ -389,7 +362,6 @@ XResultSet_impl::getRow() sal_Bool SAL_CALL XResultSet_impl::absolute( sal_Int32 row ) - throw( sdbc::SQLException, uno::RuntimeException, std::exception) { if( row >= 0 ) { @@ -412,8 +384,6 @@ sal_Bool SAL_CALL XResultSet_impl::absolute( sal_Int32 row ) sal_Bool SAL_CALL XResultSet_impl::relative( sal_Int32 row ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( isAfterLast() || isBeforeFirst() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); @@ -428,8 +398,6 @@ XResultSet_impl::relative( sal_Int32 row ) sal_Bool SAL_CALL XResultSet_impl::previous() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( m_nRow > sal::static_int_cast<sal_Int32>(m_aItems.size()) ) m_nRow = sal::static_int_cast<sal_Int32>(m_aItems.size()); // Correct Handling of afterLast @@ -441,8 +409,6 @@ XResultSet_impl::previous() void SAL_CALL XResultSet_impl::refreshRow() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { // get the row from the filesystem return; @@ -451,24 +417,18 @@ XResultSet_impl::refreshRow() sal_Bool SAL_CALL XResultSet_impl::rowUpdated() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } sal_Bool SAL_CALL XResultSet_impl::rowInserted() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } sal_Bool SAL_CALL XResultSet_impl::rowDeleted() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } @@ -476,8 +436,6 @@ XResultSet_impl::rowDeleted() uno::Reference< uno::XInterface > SAL_CALL XResultSet_impl::getStatement() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return uno::Reference< uno::XInterface >(); } @@ -487,8 +445,6 @@ XResultSet_impl::getStatement() void SAL_CALL XResultSet_impl::close() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( m_nIsOpen ) { @@ -502,7 +458,6 @@ XResultSet_impl::close() OUString SAL_CALL XResultSet_impl::queryContentIdentifierString() - throw( uno::RuntimeException, std::exception ) { uno::Reference< ucb::XContentIdentifier > xContentId = queryContentIdentifier(); @@ -516,7 +471,6 @@ XResultSet_impl::queryContentIdentifierString() uno::Reference< ucb::XContentIdentifier > SAL_CALL XResultSet_impl::queryContentIdentifier() - throw( uno::RuntimeException, std::exception ) { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) { @@ -532,7 +486,6 @@ XResultSet_impl::queryContentIdentifier() uno::Reference< ucb::XContent > SAL_CALL XResultSet_impl::queryContent() - throw( uno::RuntimeException, std::exception ) { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_pMyShell->m_pProvider->queryContent( queryContentIdentifier() ); @@ -547,8 +500,6 @@ XResultSet_impl::queryContent() // virtual uno::Reference< sdbc::XResultSet > SAL_CALL XResultSet_impl::getStaticResultSet() - throw( ucb::ListenerAlreadySetException, - uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -563,8 +514,6 @@ XResultSet_impl::getStaticResultSet() void SAL_CALL XResultSet_impl::setListener( const uno::Reference< ucb::XDynamicResultSetListener >& Listener ) - throw( ucb::ListenerAlreadySetException, - uno::RuntimeException, std::exception ) { osl::ClearableMutexGuard aGuard( m_aMutex ); @@ -603,10 +552,6 @@ XResultSet_impl::setListener( void SAL_CALL XResultSet_impl::connectToCache( const uno::Reference< ucb::XDynamicResultSet > & xCache ) - throw( ucb::ListenerAlreadySetException, - ucb::AlreadyInitializedException, - ucb::ServiceNotFoundException, - uno::RuntimeException, std::exception ) { if( m_xListener.is() ) throw ucb::ListenerAlreadySetException( THROW_WHERE ); @@ -640,7 +585,6 @@ XResultSet_impl::connectToCache( // virtual sal_Int16 SAL_CALL XResultSet_impl::getCapabilities() - throw( uno::RuntimeException, std::exception ) { // Never set ucb::ContentResultSetCapability::SORTED // - Underlying content cannot provide sorted data... @@ -650,8 +594,6 @@ XResultSet_impl::getCapabilities() // XResultSetMetaDataSupplier uno::Reference< sdbc::XResultSetMetaData > SAL_CALL XResultSet_impl::getMetaData() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { for ( sal_Int32 n = 0; n < m_sProperty.getLength(); ++n ) { @@ -682,7 +624,6 @@ XResultSet_impl::getMetaData() // XPropertySet uno::Reference< beans::XPropertySetInfo > SAL_CALL XResultSet_impl::getPropertySetInfo() - throw( uno::RuntimeException, std::exception) { uno::Sequence< beans::Property > seq(2); @@ -704,11 +645,6 @@ XResultSet_impl::getPropertySetInfo() void SAL_CALL XResultSet_impl::setPropertyValue( const OUString& aPropertyName, const uno::Any& ) - throw( beans::UnknownPropertyException, - beans::PropertyVetoException, - lang::IllegalArgumentException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" || aPropertyName == "RowCount" ) @@ -719,9 +655,6 @@ void SAL_CALL XResultSet_impl::setPropertyValue( uno::Any SAL_CALL XResultSet_impl::getPropertyValue( const OUString& PropertyName ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( PropertyName == "IsRowCountFinal" ) { @@ -740,9 +673,6 @@ uno::Any SAL_CALL XResultSet_impl::getPropertyValue( void SAL_CALL XResultSet_impl::addPropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& xListener ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" ) { @@ -769,9 +699,6 @@ void SAL_CALL XResultSet_impl::addPropertyChangeListener( void SAL_CALL XResultSet_impl::removePropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& aListener ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" && m_pIsFinalListeners ) @@ -793,9 +720,6 @@ void SAL_CALL XResultSet_impl::removePropertyChangeListener( void SAL_CALL XResultSet_impl::addVetoableChangeListener( const OUString&, const uno::Reference< beans::XVetoableChangeListener >& ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { } @@ -803,9 +727,6 @@ void SAL_CALL XResultSet_impl::addVetoableChangeListener( void SAL_CALL XResultSet_impl::removeVetoableChangeListener( const OUString&, const uno::Reference< beans::XVetoableChangeListener >& ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { } diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index e4dea03b1313..3c2769ac2ecb 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -91,29 +91,23 @@ class XResultSet_impl : public Notifier, // XEventListener virtual void SAL_CALL - disposing( const css::lang::EventObject& Source ) - throw( css::uno::RuntimeException, std::exception ) override; + disposing( const css::lang::EventObject& Source ) override; // XComponent virtual void SAL_CALL - dispose() - throw( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL addEventListener( - const css::uno::Reference< css::lang::XEventListener >& xListener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; // XRow virtual sal_Bool SAL_CALL - wasNull() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + wasNull() override { if( 0<= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) m_nWasNull = m_aItems[m_nRow]->wasNull(); @@ -123,9 +117,7 @@ class XResultSet_impl : public Notifier, } virtual OUString SAL_CALL - getString( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getString( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getString( columnIndex ); @@ -134,9 +126,7 @@ class XResultSet_impl : public Notifier, } virtual sal_Bool SAL_CALL - getBoolean( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBoolean( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBoolean( columnIndex ); @@ -145,9 +135,7 @@ class XResultSet_impl : public Notifier, } virtual sal_Int8 SAL_CALL - getByte( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getByte( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getByte( columnIndex ); @@ -156,10 +144,7 @@ class XResultSet_impl : public Notifier, } virtual sal_Int16 SAL_CALL - getShort( sal_Int32 columnIndex ) - throw( - css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getShort( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getShort( columnIndex ); @@ -168,9 +153,7 @@ class XResultSet_impl : public Notifier, } virtual sal_Int32 SAL_CALL - getInt( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getInt( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getInt( columnIndex ); @@ -179,9 +162,7 @@ class XResultSet_impl : public Notifier, } virtual sal_Int64 SAL_CALL - getLong( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getLong( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getLong( columnIndex ); @@ -190,9 +171,7 @@ class XResultSet_impl : public Notifier, } virtual float SAL_CALL - getFloat( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getFloat( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getFloat( columnIndex ); @@ -201,9 +180,7 @@ class XResultSet_impl : public Notifier, } virtual double SAL_CALL - getDouble( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getDouble( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getDouble( columnIndex ); @@ -212,9 +189,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getBytes( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getBytes( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBytes( columnIndex ); @@ -223,9 +198,7 @@ class XResultSet_impl : public Notifier, } virtual css::util::Date SAL_CALL - getDate( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getDate( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getDate( columnIndex ); @@ -234,9 +207,7 @@ class XResultSet_impl : public Notifier, } virtual css::util::Time SAL_CALL - getTime( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getTime( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getTime( columnIndex ); @@ -245,9 +216,7 @@ class XResultSet_impl : public Notifier, } virtual css::util::DateTime SAL_CALL - getTimestamp( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getTimestamp( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getTimestamp( columnIndex ); @@ -256,9 +225,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getBinaryStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBinaryStream( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBinaryStream( columnIndex ); @@ -267,9 +234,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getCharacterStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getCharacterStream( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getCharacterStream( columnIndex ); @@ -279,9 +244,7 @@ class XResultSet_impl : public Notifier, virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, - const css::uno::Reference< css::container::XNameAccess >& typeMap ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + const css::uno::Reference< css::container::XNameAccess >& typeMap ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getObject( columnIndex,typeMap ); @@ -290,9 +253,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL - getRef( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getRef( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getRef( columnIndex ); @@ -301,9 +262,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL - getBlob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBlob( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBlob( columnIndex ); @@ -312,9 +271,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL - getClob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getClob( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getClob( columnIndex ); @@ -323,9 +280,7 @@ class XResultSet_impl : public Notifier, } virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL - getArray( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getArray( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getArray( columnIndex ); @@ -337,202 +292,129 @@ class XResultSet_impl : public Notifier, // XResultSet virtual sal_Bool SAL_CALL - next() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + next() override; virtual sal_Bool SAL_CALL - isBeforeFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isBeforeFirst() override; virtual sal_Bool SAL_CALL - isAfterLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isAfterLast() override; virtual sal_Bool SAL_CALL - isFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isFirst() override; virtual sal_Bool SAL_CALL - isLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isLast() override; virtual void SAL_CALL - beforeFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + beforeFirst() override; virtual void SAL_CALL - afterLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + afterLast() override; virtual sal_Bool SAL_CALL - first() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + first() override; virtual sal_Bool SAL_CALL - last() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + last() override; virtual sal_Int32 SAL_CALL - getRow() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getRow() override; virtual sal_Bool SAL_CALL - absolute( sal_Int32 row ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + absolute( sal_Int32 row ) override; virtual sal_Bool SAL_CALL - relative( sal_Int32 rows ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + relative( sal_Int32 rows ) override; virtual sal_Bool SAL_CALL - previous() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + previous() override; virtual void SAL_CALL - refreshRow() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + refreshRow() override; virtual sal_Bool SAL_CALL - rowUpdated() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowUpdated() override; virtual sal_Bool SAL_CALL - rowInserted() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowInserted() override; virtual sal_Bool SAL_CALL - rowDeleted() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowDeleted() override; virtual css::uno::Reference< css::uno::XInterface > SAL_CALL - getStatement() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getStatement() override; // XDynamicResultSet virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL - getStaticResultSet() - throw( css::ucb::ListenerAlreadySetException, - css::uno::RuntimeException, std::exception ) override; + getStaticResultSet() override; virtual void SAL_CALL setListener( const css::uno::Reference< - css::ucb::XDynamicResultSetListener >& Listener ) - throw( css::ucb::ListenerAlreadySetException, - css::uno::RuntimeException, std::exception ) override; + css::ucb::XDynamicResultSetListener >& Listener ) override; virtual void SAL_CALL - connectToCache( const css::uno::Reference< css::ucb::XDynamicResultSet > & xCache ) - throw( css::ucb::ListenerAlreadySetException, - css::ucb::AlreadyInitializedException, - css::ucb::ServiceNotFoundException, - css::uno::RuntimeException, std::exception ) override; + connectToCache( const css::uno::Reference< css::ucb::XDynamicResultSet > & xCache ) override; virtual sal_Int16 SAL_CALL - getCapabilities() - throw( css::uno::RuntimeException, std::exception ) override; + getCapabilities() override; // XCloseable virtual void SAL_CALL - close() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + close() override; // XContentAccess virtual OUString SAL_CALL - queryContentIdentifierString() - throw( css::uno::RuntimeException, std::exception ) override; + queryContentIdentifierString() override; virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL - queryContentIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + queryContentIdentifier() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent() - throw( css::uno::RuntimeException, std::exception ) override; + queryContent() override; // XResultSetMetaDataSupplier virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL - getMetaData() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getMetaData() override; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL - getPropertySetInfo() - throw( css::uno::RuntimeException, std::exception) override; + getPropertySetInfo() 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; + const css::uno::Any& aValue ) override; virtual css::uno::Any SAL_CALL getPropertyValue( - const OUString& PropertyName ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const OUString& PropertyName ) 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; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; private: @@ -571,10 +453,7 @@ class XResultSet_impl : public Notifier, // Methods /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - bool SAL_CALL OneMore() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, - std::exception ); + bool SAL_CALL OneMore(); void rowCountChanged(); void isFinalChanged(); diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 41891839f3d3..20e4952ab5f3 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -85,7 +85,6 @@ XStream_impl::~XStream_impl() uno::Reference< io::XInputStream > SAL_CALL XStream_impl::getInputStream( ) - throw( uno::RuntimeException, std::exception) { { osl::MutexGuard aGuard( m_aMutex ); @@ -97,7 +96,6 @@ XStream_impl::getInputStream( ) uno::Reference< io::XOutputStream > SAL_CALL XStream_impl::getOutputStream( ) - throw( uno::RuntimeException, std::exception ) { { osl::MutexGuard aGuard( m_aMutex ); @@ -108,7 +106,6 @@ XStream_impl::getOutputStream( ) void SAL_CALL XStream_impl::truncate() - throw( io::IOException, uno::RuntimeException, std::exception ) { if (osl::FileBase::E_None != m_aFile.setSize(0)) throw io::IOException( THROW_WHERE ); @@ -125,10 +122,6 @@ sal_Int32 SAL_CALL XStream_impl::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { if( ! m_nIsOpen ) throw io::IOException( THROW_WHERE ); @@ -159,10 +152,6 @@ sal_Int32 SAL_CALL XStream_impl::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { return readBytes( aData,nMaxBytesToRead ); } @@ -170,10 +159,6 @@ XStream_impl::readSomeBytes( void SAL_CALL XStream_impl::skipBytes( sal_Int32 nBytesToSkip ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { m_aFile.setPos( osl_Pos_Current, sal_uInt64( nBytesToSkip ) ); } @@ -181,9 +166,6 @@ XStream_impl::skipBytes( sal_Int32 nBytesToSkip ) sal_Int32 SAL_CALL XStream_impl::available() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception) { return 0; } @@ -191,10 +173,6 @@ XStream_impl::available() void SAL_CALL XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception) { sal_uInt32 length = aData.getLength(); if(length) @@ -210,9 +188,6 @@ XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData ) void SAL_CALL XStream_impl::closeStream() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException ) { if( m_nIsOpen ) { @@ -230,9 +205,6 @@ XStream_impl::closeStream() void SAL_CALL XStream_impl::closeInput() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); m_bInputStreamCalled = false; @@ -244,9 +216,6 @@ XStream_impl::closeInput() void SAL_CALL XStream_impl::closeOutput() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); m_bOutputStreamCalled = false; @@ -258,9 +227,6 @@ XStream_impl::closeOutput() void SAL_CALL XStream_impl::seek( sal_Int64 location ) - throw( lang::IllegalArgumentException, - io::IOException, - uno::RuntimeException, std::exception ) { if( location < 0 ) throw lang::IllegalArgumentException( THROW_WHERE, uno::Reference< uno::XInterface >(), 0 ); @@ -271,8 +237,6 @@ XStream_impl::seek( sal_Int64 location ) sal_Int64 SAL_CALL XStream_impl::getPosition() - throw( io::IOException, - uno::RuntimeException, std::exception ) { sal_uInt64 uPos; if( osl::FileBase::E_None != m_aFile.getPos( uPos ) ) @@ -282,8 +246,6 @@ XStream_impl::getPosition() sal_Int64 SAL_CALL XStream_impl::getLength() - throw( io::IOException, - uno::RuntimeException, std::exception ) { sal_uInt64 uEndPos; if ( m_aFile.getSize(uEndPos) != osl::FileBase::E_None ) @@ -294,14 +256,9 @@ XStream_impl::getLength() void SAL_CALL XStream_impl::flush() - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) {} void XStream_impl::waitForCompletion() - throw (io::IOException, uno::RuntimeException, std::exception) { // At least on UNIX, to reliably learn about any errors encountered by // asynchronous NFS write operations, without closing the file directly diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index c4308afa3184..c65b7cda76cb 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -63,19 +63,15 @@ class XStream_impl : public cppu::WeakImplHelper< // XStream virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getInputStream() - throw( css::uno::RuntimeException, std::exception ) override; + getInputStream() override; virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL - getOutputStream() - throw( css::uno::RuntimeException, std::exception ) override; + getOutputStream() override; // XTruncate - virtual void SAL_CALL truncate() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL truncate() override; // XInputStream @@ -83,88 +79,49 @@ class XStream_impl : public cppu::WeakImplHelper< 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; + sal_Int32 nBytesToRead ) override; 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; + sal_Int32 nMaxBytesToRead ) override; void SAL_CALL - skipBytes( sal_Int32 nBytesToSkip ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + skipBytes( sal_Int32 nBytesToSkip ) override; sal_Int32 SAL_CALL - available() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + available() override; void SAL_CALL - closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeInput() override; // XSeekable void SAL_CALL - seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + seek( sal_Int64 location ) override; sal_Int64 SAL_CALL - getPosition() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + getPosition() override; sal_Int64 SAL_CALL - getLength() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + getLength() override; // XOutputStream 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; + writeBytes( const css::uno::Sequence< sal_Int8 >& aData ) override; void SAL_CALL - flush() - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception) override; + flush() override; void SAL_CALL - closeOutput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeOutput() override; - virtual void SAL_CALL waitForCompletion() - throw ( - css::io::IOException, - css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL waitForCompletion() override; private: @@ -183,10 +140,7 @@ class XStream_impl : public cppu::WeakImplHelper< /// @throws css::io::IOException /// @throws css::uno::RuntimeException void SAL_CALL - closeStream() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException ); + closeStream(); }; diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index cc038ca61a0f..653289b13a5c 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -390,7 +390,6 @@ void SAL_CALL TaskManager::startTask( sal_Int32 CommandId, const uno::Reference< XCommandEnvironment >& xCommandEnv ) - throw( DuplicateCommandIdentifierException ) { osl::MutexGuard aGuard( m_aMutex ); TaskMap::iterator it = m_aTaskMap.find( CommandId ); @@ -571,9 +570,6 @@ TaskManager::associate( const OUString& aUnqPath, const OUString& PropertyName, const uno::Any& DefaultValue, const sal_Int16 Attributes ) - throw( beans::PropertyExistException, - beans::IllegalTypeException, - uno::RuntimeException ) { MyProperty newProperty( false, PropertyName, @@ -611,9 +607,6 @@ TaskManager::associate( const OUString& aUnqPath, void SAL_CALL TaskManager::deassociate( const OUString& aUnqPath, const OUString& PropertyName ) - throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - uno::RuntimeException ) { MyProperty oldProperty( PropertyName ); diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index eb81fd594a35..e924f191dd16 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -254,8 +254,7 @@ namespace fileaccess /// @throws css::ucb::DuplicateCommandIdentifierException void SAL_CALL startTask( sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv ) - throw( css::ucb::DuplicateCommandIdentifierException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv ); sal_Int32 SAL_CALL getCommandId(); void SAL_CALL abort( sal_Int32 CommandId ); @@ -322,19 +321,13 @@ namespace fileaccess void SAL_CALL associate( const OUString& UnqPath, const OUString& PropertyName, const css::uno::Any& DefaultValue, - const sal_Int16 Attributes ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::uno::RuntimeException); + const sal_Int16 Attributes ); /// @throws css::beans::UnknownPropertyException /// @throws css::beans::NotRemoveableException /// @throws css::uno::RuntimeException void SAL_CALL deassociate( const OUString& UnqPath, - const OUString& PropertyName ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException); + const OUString& PropertyName ); // Every method having a command id is not allowed to throw anything, diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index 9659d5caaf59..5552d016a43b 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -105,7 +105,6 @@ void SAL_CALL FileProvider::init() void SAL_CALL FileProvider::initialize( const Sequence< Any >& aArguments ) - throw (Exception, RuntimeException, std::exception) { if( ! m_pMyShell ) { OUString config; @@ -121,20 +120,17 @@ FileProvider::initialize( // XServiceInfo methods. OUString SAL_CALL FileProvider::getImplementationName() - throw( RuntimeException, std::exception ) { return fileaccess::TaskManager::getImplementationName_static(); } sal_Bool SAL_CALL FileProvider::supportsService(const OUString& ServiceName ) - throw( RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } Sequence< OUString > SAL_CALL FileProvider::getSupportedServiceNames() - throw( RuntimeException, std::exception ) { return fileaccess::TaskManager::getSupportedServiceNames_static(); } @@ -165,8 +161,6 @@ FileProvider::CreateInstance( Reference< XContent > SAL_CALL FileProvider::queryContent( const Reference< XContentIdentifier >& xIdentifier ) - throw( IllegalIdentifierException, - RuntimeException, std::exception) { init(); OUString aUnc; @@ -184,7 +178,6 @@ sal_Int32 SAL_CALL FileProvider::compareContentIds( const Reference< XContentIdentifier >& Id1, const Reference< XContentIdentifier >& Id2 ) - throw( RuntimeException, std::exception ) { init(); OUString aUrl1 = Id1->getContentIdentifier(); @@ -241,7 +234,6 @@ FileProvider::compareContentIds( Reference< XContentIdentifier > SAL_CALL FileProvider::createContentIdentifier( const OUString& ContentId ) - throw( RuntimeException, std::exception ) { init(); FileContentIdentifier* p = new FileContentIdentifier( ContentId,false ); @@ -260,8 +252,7 @@ public: // XInterface virtual Any SAL_CALL - queryInterface( const Type& aType ) - throw( RuntimeException, std::exception) override; + queryInterface( const Type& aType ) override; virtual void SAL_CALL acquire() @@ -273,17 +264,13 @@ public: virtual Sequence< Property > SAL_CALL - getProperties() - throw( RuntimeException, std::exception ) override; + getProperties() override; virtual Property SAL_CALL - getPropertyByName( const OUString& aName ) - throw( UnknownPropertyException, - RuntimeException, std::exception) override; + getPropertyByName( const OUString& aName ) override; virtual sal_Bool SAL_CALL - hasPropertyByName( const OUString& Name ) - throw( RuntimeException, std::exception ) override; + hasPropertyByName( const OUString& Name ) override; private: @@ -328,7 +315,6 @@ XPropertySetInfoImpl2::release() Any SAL_CALL XPropertySetInfoImpl2::queryInterface( const Type& rType ) - throw( RuntimeException, std::exception ) { Any aRet = cppu::queryInterface( rType, (static_cast< XPropertySetInfo* >(this)) ); @@ -338,8 +324,6 @@ XPropertySetInfoImpl2::queryInterface( const Type& rType ) Property SAL_CALL XPropertySetInfoImpl2::getPropertyByName( const OUString& aName ) - throw( UnknownPropertyException, - RuntimeException, std::exception) { for( sal_Int32 i = 0; i < m_seq.getLength(); ++i ) if( m_seq[i].Name == aName ) @@ -351,7 +335,6 @@ XPropertySetInfoImpl2::getPropertyByName( const OUString& aName ) Sequence< Property > SAL_CALL XPropertySetInfoImpl2::getProperties() - throw( RuntimeException, std::exception ) { return m_seq; } @@ -360,7 +343,6 @@ XPropertySetInfoImpl2::getProperties() sal_Bool SAL_CALL XPropertySetInfoImpl2::hasPropertyByName( const OUString& aName ) - throw( RuntimeException, std::exception ) { for( sal_Int32 i = 0; i < m_seq.getLength(); ++i ) if( m_seq[i].Name == aName ) @@ -401,7 +383,6 @@ void SAL_CALL FileProvider::initProperties() Reference< XPropertySetInfo > SAL_CALL FileProvider::getPropertySetInfo( ) - throw( RuntimeException, std::exception ) { initProperties(); return m_xPropertySetInfo; @@ -411,11 +392,6 @@ FileProvider::getPropertySetInfo( ) void SAL_CALL FileProvider::setPropertyValue( const OUString& aPropertyName, const Any& ) - throw( UnknownPropertyException, - PropertyVetoException, - IllegalArgumentException, - WrappedTargetException, - RuntimeException, std::exception ) { if( aPropertyName == "FileSystemNotation" || aPropertyName == "HomeDirectory" || @@ -429,9 +405,6 @@ FileProvider::setPropertyValue( const OUString& aPropertyName, Any SAL_CALL FileProvider::getPropertyValue( const OUString& aPropertyName ) - throw( UnknownPropertyException, - WrappedTargetException, - RuntimeException, std::exception ) { initProperties(); if( aPropertyName == "FileSystemNotation" ) @@ -455,9 +428,6 @@ void SAL_CALL FileProvider::addPropertyChangeListener( const OUString&, const Reference< XPropertyChangeListener >& ) - throw( UnknownPropertyException, - WrappedTargetException, - RuntimeException, std::exception) { return; } @@ -467,9 +437,6 @@ void SAL_CALL FileProvider::removePropertyChangeListener( const OUString&, const Reference< XPropertyChangeListener >& ) - throw( UnknownPropertyException, - WrappedTargetException, - RuntimeException, std::exception ) { return; } @@ -478,9 +445,6 @@ void SAL_CALL FileProvider::addVetoableChangeListener( const OUString&, const Reference< XVetoableChangeListener >& ) - throw( UnknownPropertyException, - WrappedTargetException, - RuntimeException, std::exception ) { return; } @@ -490,9 +454,6 @@ void SAL_CALL FileProvider::removeVetoableChangeListener( const OUString&, const Reference< XVetoableChangeListener >& ) - throw( UnknownPropertyException, - WrappedTargetException, - RuntimeException, std::exception) { return; } @@ -502,7 +463,6 @@ FileProvider::removeVetoableChangeListener( sal_Int32 SAL_CALL FileProvider::getFileProviderLocality( const OUString& BaseURL ) - throw( RuntimeException, std::exception ) { // If the base URL is a 'file' URL, return 10 (very 'local'), otherwise // return -1 (missmatch). What is missing is a fast comparison to ASCII, @@ -518,7 +478,6 @@ FileProvider::getFileProviderLocality( const OUString& BaseURL ) OUString SAL_CALL FileProvider::getFileURLFromSystemPath( const OUString&, const OUString& SystemPath ) - throw( RuntimeException, std::exception ) { OUString aNormalizedPath; if ( osl::FileBase::getFileURLFromSystemPath( SystemPath,aNormalizedPath ) != osl::FileBase::E_None ) @@ -528,7 +487,6 @@ OUString SAL_CALL FileProvider::getFileURLFromSystemPath( const OUString&, } OUString SAL_CALL FileProvider::getSystemPathFromFileURL( const OUString& URL ) - throw( RuntimeException, std::exception ) { OUString aSystemPath; if (osl::FileBase::getSystemPathFromFileURL( URL,aSystemPath ) != osl::FileBase::E_None ) diff --git a/ucb/source/ucp/file/prov.hxx b/ucb/source/ucp/file/prov.hxx index 28c8238ea329..78e44db96323 100644 --- a/ucb/source/ucp/file/prov.hxx +++ b/ucb/source/ucp/file/prov.hxx @@ -64,16 +64,13 @@ namespace fileaccess { // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual sal_Bool SAL_CALL - supportsService( const OUString& ServiceName ) - throw(css::uno::RuntimeException, std::exception ) override; + supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL @@ -87,99 +84,70 @@ namespace fileaccess { // XInitialization virtual void SAL_CALL initialize( - const css::uno::Sequence< css::uno::Any >& aArguments ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + const css::uno::Sequence< css::uno::Any >& aArguments ) override; // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent( - const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // XContentIdentifierFactory virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL createContentIdentifier( - const OUString& ContentId ) - throw( css::uno::RuntimeException, std::exception ) override; + const OUString& ContentId ) override; virtual sal_Int32 SAL_CALL compareContentIds( const css::uno::Reference< css::ucb::XContentIdentifier >& Id1, - const css::uno::Reference< css::ucb::XContentIdentifier >& Id2 ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XContentIdentifier >& Id2 ) override; // XProperySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL - getPropertySetInfo( ) - throw( css::uno::RuntimeException, std::exception ) override; + getPropertySetInfo( ) 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; + const css::uno::Any& aValue ) override; virtual css::uno::Any SAL_CALL getPropertyValue( - const OUString& PropertyName ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& PropertyName ) 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; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; // XFileIdentifierConverter virtual sal_Int32 SAL_CALL - getFileProviderLocality( const OUString& BaseURL ) - throw( css::uno::RuntimeException, std::exception ) override; + getFileProviderLocality( const OUString& BaseURL ) override; virtual OUString SAL_CALL getFileURLFromSystemPath( const OUString& BaseURL, - const OUString& SystemPath ) - throw( css::uno::RuntimeException, std::exception ) override; + const OUString& SystemPath ) override; - virtual OUString SAL_CALL getSystemPathFromFileURL( const OUString& URL ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual OUString SAL_CALL getSystemPathFromFileURL( const OUString& URL ) override; private: diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index ca606c994b9c..2933e73820bb 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -125,7 +125,6 @@ void SAL_CALL FTPContent::release() } css::uno::Any SAL_CALL FTPContent::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< XTypeProvider* >(this)), @@ -141,15 +140,11 @@ css::uno::Any SAL_CALL FTPContent::queryInterface( const css::uno::Type & rType // XTypeProvider methods. css::uno::Sequence< sal_Int8 > SAL_CALL FTPContent::getImplementationId() - throw( css::uno::RuntimeException, - std::exception ) { return css::uno::Sequence<sal_Int8>(); } css::uno::Sequence< css::uno::Type > SAL_CALL FTPContent::getTypes() - throw( css::uno::RuntimeException, - std::exception ) { static cppu::OTypeCollection* pCollection = nullptr; if ( !pCollection ) @@ -175,19 +170,16 @@ css::uno::Sequence< css::uno::Type > SAL_CALL FTPContent::getTypes() // XServiceInfo methods. OUString SAL_CALL FTPContent::getImplementationName() - throw( css::uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.comp.FTPContent"); } sal_Bool SAL_CALL FTPContent::supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException, std::exception ) { return cppu::supportsService( this, ServiceName ); } css::uno::Sequence< OUString > SAL_CALL FTPContent::getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) { return { "com.sun.star.ucb.FTPContent" }; } @@ -197,7 +189,6 @@ css::uno::Sequence< OUString > SAL_CALL FTPContent::getSupportedServiceNames() // virtual OUString SAL_CALL FTPContent::getContentType() - throw( RuntimeException, std::exception ) { return OUString(FTP_CONTENT_TYPE); } @@ -206,7 +197,6 @@ OUString SAL_CALL FTPContent::getContentType() //virtual void SAL_CALL FTPContent::abort( sal_Int32 /*CommandId*/ ) - throw( RuntimeException, std::exception ) { } @@ -248,10 +238,6 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand, sal_Int32 /*CommandId*/, const Reference< XCommandEnvironment >& Environment) - throw( Exception, - CommandAbortedException, - RuntimeException, - std::exception) { ACTION action(NOACTION); Any aRet; @@ -598,7 +584,6 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand, Sequence<ContentInfo > SAL_CALL FTPContent::queryCreatableContentsInfo( ) - throw (RuntimeException, std::exception) { return queryCreatableContentsInfo_Static(); } @@ -606,7 +591,6 @@ FTPContent::queryCreatableContentsInfo( ) // static Sequence<ContentInfo > FTPContent::queryCreatableContentsInfo_Static( ) - throw (RuntimeException) { Sequence< ContentInfo > seq(2); @@ -632,7 +616,6 @@ FTPContent::queryCreatableContentsInfo_Static( ) Reference<XContent > SAL_CALL FTPContent::createNewContent( const ContentInfo& Info ) - throw (RuntimeException, std::exception) { if( Info.Type =="application/vnd.sun.staroffice.ftp-file" || Info.Type == "application/vnd.sun.staroffice.ftp-folder" ) return new FTPContent(m_xContext, @@ -645,7 +628,6 @@ FTPContent::createNewContent( const ContentInfo& Info ) Reference<XInterface > SAL_CALL FTPContent::getParent( ) - throw (RuntimeException, std::exception) { Reference<XContentIdentifier> xIdent(new FTPContentIdentifier(m_aFTPURL.parent())); @@ -655,8 +637,6 @@ FTPContent::getParent( ) void SAL_CALL FTPContent::setParent(const Reference<XInterface >& /*Parent*/ ) - throw (NoSupportException, - RuntimeException, std::exception) { throw NoSupportException(); } diff --git a/ucb/source/ucp/ftp/ftpcontent.hxx b/ucb/source/ucp/ftp/ftpcontent.hxx index bf9b53b3d4fe..74666dee9a0e 100644 --- a/ucb/source/ucp/ftp/ftpcontent.hxx +++ b/ucb/source/ucp/ftp/ftpcontent.hxx @@ -63,68 +63,49 @@ public: virtual ~FTPContent() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, - std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, - std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; // XContent - virtual OUString SAL_CALL getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + virtual OUString SAL_CALL getContentType() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, const css::uno::Reference< - css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + css::ucb::XCommandEnvironment >& Environment ) override; - virtual void SAL_CALL abort(sal_Int32 CommandId) - throw( css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL abort(sal_Int32 CommandId) override; // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo( ) - throw (css::uno::RuntimeException, std::exception) override; + queryCreatableContentsInfo( ) override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw (css::uno::RuntimeException, std::exception) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // XChild - virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) - throw (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 ) - throw (css::lang::NoSupportException, - css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override; /// @throws css::uno::RuntimeException - static css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo_Static() - throw (css::uno::RuntimeException); + static css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo_Static(); private: diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx index bbc3e0b800d9..683422366703 100644 --- a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx +++ b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx @@ -49,9 +49,6 @@ Any SAL_CALL FTPContentIdentifier::queryInterface( const Type& rType ) - throw( - RuntimeException, std::exception - ) { Any aRet = ::cppu::queryInterface(rType, @@ -74,7 +71,6 @@ void SAL_CALL FTPContentIdentifier::release() throw() { Sequence<sal_Int8> SAL_CALL FTPContentIdentifier::getImplementationId() - throw(RuntimeException, std::exception) { return css::uno::Sequence<sal_Int8>(); } @@ -82,7 +78,6 @@ FTPContentIdentifier::getImplementationId() Sequence<Type> SAL_CALL FTPContentIdentifier::getTypes() - throw(RuntimeException, std::exception) { static cppu::OTypeCollection* pCollection = nullptr; if ( !pCollection ) { @@ -102,9 +97,6 @@ FTPContentIdentifier::getTypes() OUString SAL_CALL FTPContentIdentifier::getContentIdentifier( ) - throw ( - css::uno::RuntimeException, std::exception - ) { return m_ident; } @@ -113,9 +105,6 @@ FTPContentIdentifier::getContentIdentifier( OUString SAL_CALL FTPContentIdentifier::getContentProviderScheme( ) - throw ( - css::uno::RuntimeException, std::exception - ) { return OUString("ftp"); } diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.hxx b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx index 99f13b31ef79..670f9fde74dc 100644 --- a/ucb/source/ucp/ftp/ftpcontentidentifier.hxx +++ b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx @@ -53,8 +53,7 @@ namespace ftp { // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& rType ) - throw( css::uno::RuntimeException, std::exception ) override; + queryInterface( const css::uno::Type& rType ) override; virtual void SAL_CALL acquire() throw() override; @@ -64,31 +63,19 @@ namespace ftp { virtual css::uno::Sequence<css::uno::Type> SAL_CALL - getTypes() - throw( - css::uno::RuntimeException, std::exception - ) override; + getTypes() override; virtual css::uno::Sequence<sal_Int8> SAL_CALL - getImplementationId() - throw( - css::uno::RuntimeException, std::exception - ) override; + getImplementationId() override; // XContentIdentifier virtual OUString SAL_CALL - getContentIdentifier() - throw ( - css::uno::RuntimeException, std::exception - ) override; + getContentIdentifier() override; virtual OUString SAL_CALL - getContentProviderScheme() - throw ( - css::uno::RuntimeException, std::exception - ) override; + getContentProviderScheme() override; private: diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx index 1ee0fcc7c48c..d2628b9ae04a 100644 --- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx +++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx @@ -69,7 +69,6 @@ void SAL_CALL FTPContentProvider::release() } css::uno::Any SAL_CALL FTPContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< XTypeProvider* >(this)), @@ -81,15 +80,11 @@ css::uno::Any SAL_CALL FTPContentProvider::queryInterface( const css::uno::Type // XTypeProvider methods. css::uno::Sequence< sal_Int8 > SAL_CALL FTPContentProvider::getImplementationId() - throw( css::uno::RuntimeException, - std::exception ) { return css::uno::Sequence<sal_Int8>(); } css::uno::Sequence< css::uno::Type > SAL_CALL FTPContentProvider::getTypes() - throw( css::uno::RuntimeException, - std::exception ) { static cppu::OTypeCollection* pCollection = nullptr; if ( !pCollection ) @@ -112,7 +107,6 @@ css::uno::Sequence< css::uno::Type > SAL_CALL FTPContentProvider::getTypes() // XServiceInfo methods. OUString SAL_CALL FTPContentProvider::getImplementationName() - throw( css::uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } @@ -123,13 +117,11 @@ OUString FTPContentProvider::getImplementationName_Static() } sal_Bool SAL_CALL FTPContentProvider::supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException, std::exception ) { return cppu::supportsService( this, ServiceName ); } css::uno::Sequence< OUString > SAL_CALL FTPContentProvider::getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } @@ -138,7 +130,6 @@ css::uno::Sequence< OUString > SAL_CALL FTPContentProvider::getSupportedServiceN static css::uno::Reference< css::uno::XInterface > SAL_CALL FTPContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>( new FTPContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -171,9 +162,6 @@ FTPContentProvider::createServiceFactory( const css::uno::Reference< // virtual Reference<XContent> SAL_CALL FTPContentProvider::queryContent( const Reference< XContentIdentifier >& xCanonicId) - throw( IllegalIdentifierException, - RuntimeException, - std::exception) { // Check, if a content with given id already exists... Reference<XContent> xContent = queryExistingContent(xCanonicId).get(); diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.hxx b/ucb/source/ucp/ftp/ftpcontentprovider.hxx index 1c93e7f58539..46db49efd062 100644 --- a/ucb/source/ucp/ftp/ftpcontentprovider.hxx +++ b/ucb/source/ucp/ftp/ftpcontentprovider.hxx @@ -50,32 +50,20 @@ namespace ftp virtual ~FTPContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, - std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, - std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, - std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -86,10 +74,7 @@ namespace ftp // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, - std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; CURL* handle(); diff --git a/ucb/source/ucp/ftp/ftpintreq.cxx b/ucb/source/ucp/ftp/ftpintreq.cxx index 380b7df711b1..e660153807c4 100644 --- a/ucb/source/ucp/ftp/ftpintreq.cxx +++ b/ucb/source/ucp/ftp/ftpintreq.cxx @@ -40,8 +40,6 @@ XInteractionApproveImpl::XInteractionApproveImpl() } void SAL_CALL XInteractionApproveImpl::select() - throw (RuntimeException, - std::exception) { m_bSelected = true; } @@ -55,8 +53,6 @@ XInteractionDisapproveImpl::XInteractionDisapproveImpl() } void SAL_CALL XInteractionDisapproveImpl::select() - throw (RuntimeException, - std::exception) { m_bSelected = true; } diff --git a/ucb/source/ucp/ftp/ftpintreq.hxx b/ucb/source/ucp/ftp/ftpintreq.hxx index 1816662558bb..50356454f05f 100644 --- a/ucb/source/ucp/ftp/ftpintreq.hxx +++ b/ucb/source/ucp/ftp/ftpintreq.hxx @@ -40,9 +40,7 @@ namespace ftp { XInteractionApproveImpl(); - virtual void SAL_CALL select() - throw (css::uno::RuntimeException, - std::exception) override; + virtual void SAL_CALL select() override; bool isSelected() const { return m_bSelected;} @@ -59,8 +57,7 @@ namespace ftp { XInteractionDisapproveImpl(); - virtual void SAL_CALL select() - throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL select() override; private: diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx index 062ef471e0b8..00f0dc4c8238 100644 --- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx +++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx @@ -73,7 +73,6 @@ ResultSetBase::release() uno::Any SAL_CALL ResultSetBase::queryInterface( const uno::Type& rType ) - throw( uno::RuntimeException, std::exception ) { uno::Any aRet = cppu::queryInterface( rType, @@ -93,7 +92,6 @@ ResultSetBase::queryInterface( const uno::Type& rType ) void SAL_CALL ResultSetBase::addEventListener( const uno::Reference< lang::XEventListener >& Listener ) - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -108,7 +106,6 @@ ResultSetBase::addEventListener( void SAL_CALL ResultSetBase::removeEventListener( const uno::Reference< lang::XEventListener >& Listener ) - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -119,7 +116,6 @@ ResultSetBase::removeEventListener( void SAL_CALL ResultSetBase::dispose() - throw( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); @@ -145,8 +141,6 @@ ResultSetBase::dispose() sal_Bool SAL_CALL ResultSetBase::next() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { bool test; if( ++m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) @@ -159,8 +153,6 @@ ResultSetBase::next() sal_Bool SAL_CALL ResultSetBase::isBeforeFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow == -1; } @@ -168,8 +160,6 @@ ResultSetBase::isBeforeFirst() sal_Bool SAL_CALL ResultSetBase::isAfterLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow >= sal::static_int_cast<sal_Int32>(m_aItems.size()); // Cannot happen, if m_aFolder.isOpen() } @@ -177,8 +167,6 @@ ResultSetBase::isAfterLast() sal_Bool SAL_CALL ResultSetBase::isFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return m_nRow == 0; } @@ -186,8 +174,6 @@ ResultSetBase::isFirst() sal_Bool SAL_CALL ResultSetBase::isLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( m_nRow == sal::static_int_cast<sal_Int32>(m_aItems.size()) - 1 ) return true; @@ -198,8 +184,6 @@ ResultSetBase::isLast() void SAL_CALL ResultSetBase::beforeFirst() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { m_nRow = -1; } @@ -207,8 +191,6 @@ ResultSetBase::beforeFirst() void SAL_CALL ResultSetBase::afterLast() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { m_nRow = m_aItems.size(); } @@ -216,8 +198,6 @@ ResultSetBase::afterLast() sal_Bool SAL_CALL ResultSetBase::first() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { m_nRow = -1; return next(); @@ -226,8 +206,6 @@ ResultSetBase::first() sal_Bool SAL_CALL ResultSetBase::last() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { m_nRow = m_aItems.size() - 1; return true; @@ -236,8 +214,6 @@ ResultSetBase::last() sal_Int32 SAL_CALL ResultSetBase::getRow() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { // Test, whether behind last row if( -1 == m_nRow || m_nRow >= sal::static_int_cast<sal_Int32>(m_aItems.size()) ) @@ -248,7 +224,6 @@ ResultSetBase::getRow() sal_Bool SAL_CALL ResultSetBase::absolute( sal_Int32 row ) - throw( sdbc::SQLException, uno::RuntimeException, std::exception) { if( row >= 0 ) m_nRow = row - 1; @@ -266,8 +241,6 @@ sal_Bool SAL_CALL ResultSetBase::absolute( sal_Int32 row ) sal_Bool SAL_CALL ResultSetBase::relative( sal_Int32 row ) - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( isAfterLast() || isBeforeFirst() ) throw sdbc::SQLException(); @@ -285,8 +258,6 @@ ResultSetBase::relative( sal_Int32 row ) sal_Bool SAL_CALL ResultSetBase::previous() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { if( m_nRow > sal::static_int_cast<sal_Int32>(m_aItems.size()) ) m_nRow = m_aItems.size(); // Correct Handling of afterLast @@ -298,32 +269,24 @@ ResultSetBase::previous() void SAL_CALL ResultSetBase::refreshRow() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { } sal_Bool SAL_CALL ResultSetBase::rowUpdated() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } sal_Bool SAL_CALL ResultSetBase::rowInserted() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } sal_Bool SAL_CALL ResultSetBase::rowDeleted() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { return false; } @@ -331,8 +294,6 @@ ResultSetBase::rowDeleted() uno::Reference< uno::XInterface > SAL_CALL ResultSetBase::getStatement() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { uno::Reference< uno::XInterface > test( nullptr ); return test; @@ -343,15 +304,12 @@ ResultSetBase::getStatement() void SAL_CALL ResultSetBase::close() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception) { } OUString SAL_CALL ResultSetBase::queryContentIdentifierString() - throw( uno::RuntimeException, std::exception ) { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aPath[m_nRow]; @@ -362,7 +320,6 @@ ResultSetBase::queryContentIdentifierString() uno::Reference< ucb::XContentIdentifier > SAL_CALL ResultSetBase::queryContentIdentifier() - throw( uno::RuntimeException, std::exception ) { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) { @@ -382,7 +339,6 @@ ResultSetBase::queryContentIdentifier() uno::Reference< ucb::XContent > SAL_CALL ResultSetBase::queryContent() - throw( uno::RuntimeException, std::exception ) { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_xProvider->queryContent(queryContentIdentifier()); @@ -415,8 +371,7 @@ public: OWeakObject::release(); } - uno::Any SAL_CALL queryInterface( const uno::Type& rType ) - throw( uno::RuntimeException, std::exception ) override + uno::Any SAL_CALL queryInterface( const uno::Type& rType ) override { uno::Any aRet = cppu::queryInterface( rType, @@ -424,15 +379,12 @@ public: return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); } - uno::Sequence< beans::Property > SAL_CALL getProperties() - throw( uno::RuntimeException, std::exception ) override + uno::Sequence< beans::Property > SAL_CALL getProperties() override { return m_aSeq; } - beans::Property SAL_CALL getPropertyByName( const OUString& aName ) - throw( beans::UnknownPropertyException, - uno::RuntimeException, std::exception) override + beans::Property SAL_CALL getPropertyByName( const OUString& aName ) override { for( int i = 0; i < m_aSeq.getLength(); ++i ) if( aName == m_aSeq[i].Name ) @@ -440,8 +392,7 @@ public: throw beans::UnknownPropertyException(); } - sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) - throw( uno::RuntimeException, std::exception ) override + sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override { for( int i = 0; i < m_aSeq.getLength(); ++i ) if( Name == m_aSeq[i].Name ) @@ -458,7 +409,6 @@ private: // XPropertySet uno::Reference< beans::XPropertySetInfo > SAL_CALL ResultSetBase::getPropertySetInfo() - throw( uno::RuntimeException, std::exception) { uno::Sequence< beans::Property > seq(2); seq[0].Name = "RowCount"; @@ -479,11 +429,6 @@ ResultSetBase::getPropertySetInfo() void SAL_CALL ResultSetBase::setPropertyValue( const OUString& aPropertyName, const uno::Any& /*aValue*/ ) - throw( beans::UnknownPropertyException, - beans::PropertyVetoException, - lang::IllegalArgumentException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" || aPropertyName == "RowCount" ) @@ -495,9 +440,6 @@ void SAL_CALL ResultSetBase::setPropertyValue( uno::Any SAL_CALL ResultSetBase::getPropertyValue( const OUString& PropertyName ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( PropertyName == "IsRowCountFinal" ) { @@ -516,9 +458,6 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue( void SAL_CALL ResultSetBase::addPropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& xListener ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" ) { @@ -545,9 +484,6 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener( void SAL_CALL ResultSetBase::removePropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& aListener ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { if( aPropertyName == "IsRowCountFinal" && m_pIsFinalListeners ) @@ -569,9 +505,6 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener( void SAL_CALL ResultSetBase::addVetoableChangeListener( const OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { } @@ -579,9 +512,6 @@ void SAL_CALL ResultSetBase::addVetoableChangeListener( void SAL_CALL ResultSetBase::removeVetoableChangeListener( const OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ ) - throw( beans::UnknownPropertyException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) { } @@ -589,8 +519,6 @@ void SAL_CALL ResultSetBase::removeVetoableChangeListener( // XResultSetMetaDataSupplier uno::Reference< sdbc::XResultSetMetaData > SAL_CALL ResultSetBase::getMetaData() - throw( sdbc::SQLException, - uno::RuntimeException, std::exception ) { ::ucbhelper::ResultSetMetaData* p = new ::ucbhelper::ResultSetMetaData( m_xContext, m_sProperty ); diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.hxx b/ucb/source/ucp/ftp/ftpresultsetbase.hxx index 1b083eea9f38..93bcc8b6a6b6 100644 --- a/ucb/source/ucp/ftp/ftpresultsetbase.hxx +++ b/ucb/source/ucp/ftp/ftpresultsetbase.hxx @@ -58,8 +58,7 @@ namespace ftp { // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw( css::uno::RuntimeException, std::exception) override; + queryInterface( const css::uno::Type& aType ) override; virtual void SAL_CALL acquire() @@ -71,24 +70,19 @@ namespace ftp { // XComponent virtual void SAL_CALL - dispose() - throw( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL addEventListener( - const css::uno::Reference< css::lang::XEventListener >& xListener ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; // XRow virtual sal_Bool SAL_CALL - wasNull() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + wasNull() override { if( 0<= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) m_nWasNull = m_aItems[m_nRow]->wasNull(); @@ -98,9 +92,7 @@ namespace ftp { } virtual OUString SAL_CALL - getString( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getString( sal_Int32 columnIndex ) override { OUString ret; if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) @@ -110,9 +102,7 @@ namespace ftp { } virtual sal_Bool SAL_CALL - getBoolean( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBoolean( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBoolean( columnIndex ); @@ -121,9 +111,7 @@ namespace ftp { } virtual sal_Int8 SAL_CALL - getByte( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getByte( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getByte( columnIndex ); @@ -132,10 +120,7 @@ namespace ftp { } virtual sal_Int16 SAL_CALL - getShort( sal_Int32 columnIndex ) - throw( - css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getShort( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getShort( columnIndex ); @@ -144,9 +129,7 @@ namespace ftp { } virtual sal_Int32 SAL_CALL - getInt( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getInt( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getInt( columnIndex ); @@ -155,9 +138,7 @@ namespace ftp { } virtual sal_Int64 SAL_CALL - getLong( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getLong( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getLong( columnIndex ); @@ -166,9 +147,7 @@ namespace ftp { } virtual float SAL_CALL - getFloat( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getFloat( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getFloat( columnIndex ); @@ -177,9 +156,7 @@ namespace ftp { } virtual double SAL_CALL - getDouble( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getDouble( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getDouble( columnIndex ); @@ -188,9 +165,7 @@ namespace ftp { } virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getBytes( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception ) override + getBytes( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBytes( columnIndex ); @@ -199,9 +174,7 @@ namespace ftp { } virtual css::util::Date SAL_CALL - getDate( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getDate( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getDate( columnIndex ); @@ -210,9 +183,7 @@ namespace ftp { } virtual css::util::Time SAL_CALL - getTime( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getTime( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getTime( columnIndex ); @@ -221,9 +192,7 @@ namespace ftp { } virtual css::util::DateTime SAL_CALL - getTimestamp( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getTimestamp( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getTimestamp( columnIndex ); @@ -233,9 +202,7 @@ namespace ftp { virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getBinaryStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBinaryStream( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBinaryStream( columnIndex ); @@ -244,9 +211,7 @@ namespace ftp { } virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getCharacterStream( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getCharacterStream( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getCharacterStream( columnIndex ); @@ -256,9 +221,7 @@ namespace ftp { virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, - const css::uno::Reference< css::container::XNameAccess >& typeMap ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + const css::uno::Reference< css::container::XNameAccess >& typeMap ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getObject( columnIndex,typeMap ); @@ -267,9 +230,7 @@ namespace ftp { } virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL - getRef( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getRef( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getRef( columnIndex ); @@ -278,9 +239,7 @@ namespace ftp { } virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL - getBlob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getBlob( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getBlob( columnIndex ); @@ -289,9 +248,7 @@ namespace ftp { } virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL - getClob( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getClob( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getClob( columnIndex ); @@ -300,9 +257,7 @@ namespace ftp { } virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL - getArray( sal_Int32 columnIndex ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override + getArray( sal_Int32 columnIndex ) override { if( 0 <= m_nRow && m_nRow < sal::static_int_cast<sal_Int32>(m_aItems.size()) ) return m_aItems[m_nRow]->getArray( columnIndex ); @@ -315,177 +270,113 @@ namespace ftp { // XResultSet virtual sal_Bool SAL_CALL - next() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + next() override; virtual sal_Bool SAL_CALL - isBeforeFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isBeforeFirst() override; virtual sal_Bool SAL_CALL - isAfterLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isAfterLast() override; virtual sal_Bool SAL_CALL - isFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isFirst() override; virtual sal_Bool SAL_CALL - isLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + isLast() override; virtual void SAL_CALL - beforeFirst() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + beforeFirst() override; virtual void SAL_CALL - afterLast() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + afterLast() override; virtual sal_Bool SAL_CALL - first() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + first() override; virtual sal_Bool SAL_CALL - last() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + last() override; virtual sal_Int32 SAL_CALL - getRow() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getRow() override; virtual sal_Bool SAL_CALL absolute( - sal_Int32 row ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + sal_Int32 row ) override; virtual sal_Bool SAL_CALL relative( - sal_Int32 rows ) - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + sal_Int32 rows ) override; virtual sal_Bool SAL_CALL - previous() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + previous() override; virtual void SAL_CALL - refreshRow() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + refreshRow() override; virtual sal_Bool SAL_CALL - rowUpdated() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowUpdated() override; virtual sal_Bool SAL_CALL - rowInserted() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowInserted() override; virtual sal_Bool SAL_CALL - rowDeleted() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + rowDeleted() override; virtual css::uno::Reference< css::uno::XInterface > SAL_CALL - getStatement() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getStatement() override; // XCloseable virtual void SAL_CALL - close() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + close() override; // XContentAccess virtual OUString SAL_CALL - queryContentIdentifierString() - throw( css::uno::RuntimeException, std::exception ) override; + queryContentIdentifierString() override; virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL - queryContentIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + queryContentIdentifier() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent() - throw( css::uno::RuntimeException, std::exception ) override; + queryContent() override; // XResultSetMetaDataSupplier virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL - getMetaData() - throw( css::sdbc::SQLException, - css::uno::RuntimeException, std::exception) override; + getMetaData() override; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL - getPropertySetInfo() - throw( css::uno::RuntimeException, std::exception) override; + getPropertySetInfo() 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; + const css::uno::Any& aValue ) override; virtual css::uno::Any SAL_CALL getPropertyValue( - const OUString& PropertyName ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const OUString& PropertyName ) 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; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + 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 ) - throw( css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; protected: diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 6c33c81a9b19..40c2872d6989 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -126,9 +126,6 @@ FTPURL::FTPURL(const FTPURL& r) FTPURL::FTPURL(const OUString& url, FTPContentProvider* pFCP) - throw( - malformed_exception - ) : m_pFCP(pFCP), m_aUsername("anonymous"), m_bShowPassword(false), @@ -144,9 +141,6 @@ FTPURL::~FTPURL() void FTPURL::parse(const OUString& url) - throw( - malformed_exception - ) { OUString aPassword,aAccount; OString aIdent(url.getStr(), @@ -385,7 +379,6 @@ namespace ftp { urlParAscii.getStr()); oslFileHandle FTPURL::open() - throw(curl_exception, std::exception) { if(m_aPathSegmentVec.empty()) throw curl_exception(CURLE_FTP_COULDNT_RETR_FILE); @@ -425,9 +418,6 @@ oslFileHandle FTPURL::open() std::vector<FTPDirentry> FTPURL::list( sal_Int16 nMode ) const - throw( - curl_exception - ) { CURL *curl = m_pFCP->handle(); @@ -512,7 +502,6 @@ std::vector<FTPDirentry> FTPURL::list( OUString FTPURL::net_title() const - throw(curl_exception, std::exception) { CURL *curl = m_pFCP->handle(); @@ -592,7 +581,6 @@ OUString FTPURL::net_title() const FTPDirentry FTPURL::direntry() const - throw (curl_exception, malformed_exception, std::exception) { OUString nettitle = net_title(); FTPDirentry aDirentry; @@ -638,7 +626,6 @@ extern "C" { void FTPURL::insert(bool replaceExisting,void* stream) const - throw(curl_exception) { if(!replaceExisting) { // FTPDirentry aDirentry(direntry()); @@ -670,7 +657,6 @@ void FTPURL::insert(bool replaceExisting,void* stream) const void FTPURL::mkdir(bool ReplaceExisting) const - throw (curl_exception, malformed_exception, std::exception) { OString title; if(!m_aPathSegmentVec.empty()) { @@ -720,7 +706,6 @@ void FTPURL::mkdir(bool ReplaceExisting) const OUString FTPURL::ren(const OUString& NewTitle) - throw(curl_exception, std::exception) { CURL *curl = m_pFCP->handle(); @@ -763,7 +748,6 @@ OUString FTPURL::ren(const OUString& NewTitle) void FTPURL::del() const - throw(curl_exception, malformed_exception, std::exception) { FTPDirentry aDirentry(direntry()); diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx index cedd41211976..a0bdf0abb281 100644 --- a/ucb/source/ucp/ftp/ftpurl.hxx +++ b/ucb/source/ucp/ftp/ftpurl.hxx @@ -85,7 +85,7 @@ namespace ftp { FTPURL( const OUString& aIdent, FTPContentProvider* pFCP - ) throw (malformed_exception); + ); FTPURL(const FTPURL& r); @@ -115,36 +115,30 @@ namespace ftp { OUString child() const; /// @throws curl_exception - std::vector<FTPDirentry> list(sal_Int16 nMode) const - throw(curl_exception); + std::vector<FTPDirentry> list(sal_Int16 nMode) const; // returns a pointer to an open tempfile, // sought to the beginning of. /// @throws curl_exception - oslFileHandle open() throw(curl_exception, std::exception); + oslFileHandle open(); /// @throws curl_exception /// @throws malformed_exception - FTPDirentry direntry() const - throw(curl_exception, malformed_exception, std::exception); + FTPDirentry direntry() const; /// @throws curl_exception - void insert(bool ReplaceExisting,void* stream) const - throw(curl_exception); + void insert(bool ReplaceExisting,void* stream) const; /// @throws curl_exception /// @throws malformed_exception - void mkdir(bool ReplaceExisting) const - throw(curl_exception, malformed_exception, std::exception); + void mkdir(bool ReplaceExisting) const; /// @throws curl_exception - OUString ren(const OUString& NewTitle) - throw(curl_exception, std::exception); + OUString ren(const OUString& NewTitle); /// @throws curl_exception /// @throws malformed_exception - void del() const - throw(curl_exception, malformed_exception, std::exception); + void del() const; private: @@ -162,13 +156,10 @@ namespace ftp { std::vector<OUString> m_aPathSegmentVec; /// @throws malformed_exception - void parse(const OUString& url) - throw( - malformed_exception - ); + void parse(const OUString& url); /// @throws curl_exception - OUString net_title() const throw(curl_exception, std::exception); + OUString net_title() const; }; } diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 3a6e231939f1..6b193765dcf3 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -85,7 +85,6 @@ Content::Content( const uno::Reference< uno::XComponentContext >& rxContext, ContentProvider* pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_pProvider( pProvider ), mpFile (nullptr), mpInfo( nullptr ), mbTransient(false) { @@ -97,7 +96,6 @@ Content::Content( ContentProvider* pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, bool bIsFolder) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_pProvider( pProvider ), mpFile (nullptr), mpInfo( nullptr ), mbTransient(true) { @@ -126,14 +124,13 @@ OUString Content::getParentURL() } void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException, std::exception ) { //TODO //stick a map from each CommandId to a new GCancellable and propagate //it throughout the g_file_* calls } -OUString SAL_CALL Content::getContentType() throw( uno::RuntimeException, std::exception ) +OUString SAL_CALL Content::getContentType() { return isFolder(uno::Reference< ucb::XCommandEnvironment >()) ? OUString( GIO_FOLDER_TYPE ) @@ -281,7 +278,6 @@ uno::Any convertToException(GError *pError, const uno::Reference< uno::XInterfac } void convertToIOException(GError *pError, const uno::Reference< uno::XInterface >& rContext) - throw( io::IOException, uno::RuntimeException, std::exception ) { try { @@ -856,7 +852,6 @@ bool Content::feedSink( const uno::Reference< uno::XInterface >& xSink, uno::Any Content::open(const ucb::OpenCommandArgument2 & rOpenCommand, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { bool bIsFolder = isFolder(xEnv); @@ -924,9 +919,6 @@ uno::Any SAL_CALL Content::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException, std::exception ) { SAL_INFO("ucb.ucp.gio", "Content::execute " << aCommand.Name << "\n"); uno::Any aRet; @@ -1012,7 +1004,6 @@ uno::Any SAL_CALL Content::execute( } void Content::destroy( bool bDeletePhysical ) - throw( uno::Exception, std::exception ) { uno::Reference< ucb::XContent > xThis = this; @@ -1033,7 +1024,6 @@ void Content::destroy( bool bDeletePhysical ) void Content::insert(const uno::Reference< io::XInputStream > &xInputStream, bool bReplaceExisting, const uno::Reference< ucb::XCommandEnvironment > &xEnv ) - throw( uno::Exception ) { GError *pError = nullptr; GFileInfo *pInfo = getGFileInfo(xEnv); @@ -1082,7 +1072,6 @@ const GFileCopyFlags DEFAULT_COPYDATA_FLAGS = static_cast<GFileCopyFlags>(G_FILE_COPY_OVERWRITE|G_FILE_COPY_TARGET_DEFAULT_PERMS); void Content::transfer( const ucb::TransferInfo& aTransferInfo, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, std::exception ) { OUString sDest = m_xIdentifier->getContentIdentifier(); if (!sDest.endsWith("/")) { @@ -1110,7 +1099,6 @@ void Content::transfer( const ucb::TransferInfo& aTransferInfo, const uno::Refer uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo( const uno::Reference< ucb::XCommandEnvironment >& xEnv) - throw( uno::RuntimeException ) { if ( isFolder( xEnv ) ) { @@ -1144,14 +1132,12 @@ uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo( } uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { return queryCreatableContentsInfo( uno::Reference< ucb::XCommandEnvironment >() ); } uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException, std::exception ) { bool create_document; const char *name; @@ -1187,7 +1173,6 @@ uno::Reference< ucb::XContent > } uno::Sequence< uno::Type > SAL_CALL Content::getTypes() - throw( uno::RuntimeException, std::exception ) { if ( isFolder( uno::Reference< ucb::XCommandEnvironment >() ) ) { @@ -1324,19 +1309,18 @@ void SAL_CALL Content::release() throw() ContentImplHelper::release(); } -uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) throw ( uno::RuntimeException, std::exception ) +uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) { uno::Any aRet = cppu::queryInterface( rType, static_cast< ucb::XContentCreator * >( this ) ); return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface(rType); } -OUString SAL_CALL Content::getImplementationName() throw( uno::RuntimeException, std::exception ) +OUString SAL_CALL Content::getImplementationName() { return OUString("com.sun.star.comp.GIOContent"); } uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence<OUString> aSNS { "com.sun.star.ucb.GIOContent" }; return aSNS; diff --git a/ucb/source/ucp/gio/gio_content.hxx b/ucb/source/ucp/gio/gio_content.hxx index 9f505364484b..366eb721f0c7 100644 --- a/ucb/source/ucp/gio/gio_content.hxx +++ b/ucb/source/ucp/gio/gio_content.hxx @@ -58,8 +58,7 @@ css::uno::Any convertToException(GError *pError, /// @throws css::io::IOException /// @throws css::uno::RuntimeException void convertToIOException(GError *pError, - const css::uno::Reference< css::uno::XInterface >& rContext) - throw (css::io::IOException, css::uno::RuntimeException, std::exception); + const css::uno::Reference< css::uno::XInterface >& rContext); class ContentProvider; class Content : public ::ucbhelper::ContentImplHelper, public css::ucb::XContentCreator @@ -91,21 +90,18 @@ private: /// @throws css::uno::Exception css::uno::Any open(const css::ucb::OpenCommandArgument2 & rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rTransferInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream > & xInputStream, - bool bReplaceExisting, const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw( css::uno::Exception ); + bool bReplaceExisting, const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception - void destroy( bool bDeletePhysical ) throw( css::uno::Exception, std::exception ); + void destroy( bool bDeletePhysical ); static void copyData( const css::uno::Reference< css::io::XInputStream >& xIn, const css::uno::Reference< css::io::XOutputStream >& xOut ); @@ -125,15 +121,13 @@ public: /// @throws css::ucb::ContentCreationException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider *pProvider, - const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier) - throw ( css::ucb::ContentCreationException ); + const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier); /// @throws css::ucb::ContentCreationException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - bool bIsFolder) - throw ( css::ucb::ContentCreationException ); + bool bIsFolder); virtual ~Content() override; @@ -153,51 +147,40 @@ public: virtual OUString getParentURL() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, css::ucb::CommandAbortedException, css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; - virtual void SAL_CALL abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL abort( sal_Int32 CommandId ) override; virtual css::uno::Sequence< css::ucb::ContentInfo > - SAL_CALL queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + SAL_CALL queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > - SAL_CALL createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + SAL_CALL createNewContent( const css::ucb::ContentInfo& Info ) override; /// @throws css::uno::RuntimeException css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo( - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv) - throw( css::uno::RuntimeException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv); GFile* getGFile(); }; diff --git a/ucb/source/ucp/gio/gio_datasupplier.cxx b/ucb/source/ucp/gio/gio_datasupplier.cxx index 4e85e210ec7f..e2069973e38e 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.cxx +++ b/ucb/source/ucp/gio/gio_datasupplier.cxx @@ -262,7 +262,7 @@ void DataSupplier::close() { } -void DataSupplier::validate() throw( ucb::ResultSetException ) +void DataSupplier::validate() { } diff --git a/ucb/source/ucp/gio/gio_datasupplier.hxx b/ucb/source/ucp/gio/gio_datasupplier.hxx index 9927970c1358..4ff3047ec4c8 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.hxx +++ b/ucb/source/ucp/gio/gio_datasupplier.hxx @@ -80,8 +80,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } diff --git a/ucb/source/ucp/gio/gio_inputstream.cxx b/ucb/source/ucp/gio/gio_inputstream.cxx index 8c9453122514..2275cb7a6a84 100644 --- a/ucb/source/ucp/gio/gio_inputstream.cxx +++ b/ucb/source/ucp/gio/gio_inputstream.cxx @@ -41,21 +41,17 @@ InputStream::~InputStream() } sal_Int32 SAL_CALL InputStream::available() - throw( io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception ) { return 0; } void SAL_CALL InputStream::closeInput() - throw( io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception ) { if (mpStream) g_input_stream_close(G_INPUT_STREAM(mpStream), nullptr, nullptr); } void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { // Conservatively call readBytes and discard the read data, but given this // InputStream will always be wrapped in comphelper::OSeekableInputWrapper, @@ -65,8 +61,6 @@ void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip ) } sal_Int32 SAL_CALL InputStream::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { if (!mpStream) throw io::NotConnectedException(); @@ -89,8 +83,6 @@ sal_Int32 SAL_CALL InputStream::readBytes( uno::Sequence< sal_Int8 >& aData, sal } sal_Int32 SAL_CALL InputStream::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { return readBytes(aData, nMaxBytesToRead); } diff --git a/ucb/source/ucp/gio/gio_inputstream.hxx b/ucb/source/ucp/gio/gio_inputstream.hxx index 6a08aab71b15..9cee1c54653c 100644 --- a/ucb/source/ucp/gio/gio_inputstream.hxx +++ b/ucb/source/ucp/gio/gio_inputstream.hxx @@ -42,34 +42,16 @@ public: // 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; + sal_Int32 nBytesToRead ) 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; + sal_Int32 nMaxBytesToRead ) 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 void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) override; - virtual sal_Int32 SAL_CALL available() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual sal_Int32 SAL_CALL available() override; - virtual void SAL_CALL closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL closeInput() override; }; } // namespace gio diff --git a/ucb/source/ucp/gio/gio_outputstream.cxx b/ucb/source/ucp/gio/gio_outputstream.cxx index 4698ab93800c..da504b87e291 100644 --- a/ucb/source/ucp/gio/gio_outputstream.cxx +++ b/ucb/source/ucp/gio/gio_outputstream.cxx @@ -41,8 +41,6 @@ OutputStream::~OutputStream() } void SAL_CALL OutputStream::writeBytes( const css::uno::Sequence< sal_Int8 >& rData ) - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception) { if (!mpStream) throw io::NotConnectedException(); @@ -53,8 +51,6 @@ void SAL_CALL OutputStream::writeBytes( const css::uno::Sequence< sal_Int8 >& rD } void SAL_CALL OutputStream::flush() - throw( io::NotConnectedException, io::BufferSizeExceededException, - io::IOException, uno::RuntimeException, std::exception ) { if (!mpStream) throw io::NotConnectedException(); @@ -65,14 +61,12 @@ void SAL_CALL OutputStream::flush() } void SAL_CALL OutputStream::closeOutput() - throw( io::NotConnectedException, io::IOException, - uno::RuntimeException, std::exception ) { if (mpStream) g_output_stream_close(G_OUTPUT_STREAM(mpStream), nullptr, nullptr); } -uno::Any OutputStream::queryInterface( const uno::Type &type ) throw( uno::RuntimeException, std::exception ) +uno::Any OutputStream::queryInterface( const uno::Type &type ) { uno::Any aRet = ::cppu::queryInterface ( type, static_cast< XOutputStream * >( this ) ); diff --git a/ucb/source/ucp/gio/gio_outputstream.hxx b/ucb/source/ucp/gio/gio_outputstream.hxx index 6cae73ad7555..1b6cf6ffd273 100644 --- a/ucb/source/ucp/gio/gio_outputstream.hxx +++ b/ucb/source/ucp/gio/gio_outputstream.hxx @@ -45,29 +45,17 @@ public: virtual ~OutputStream() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type & type ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type & type ) override; virtual void SAL_CALL acquire() throw () override { OWeakObject::acquire(); } virtual void SAL_CALL release() throw() override { OWeakObject::release(); } // 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 writeBytes( const css::uno::Sequence< sal_Int8 >& aData ) 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 flush() override; - virtual void SAL_CALL closeOutput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL closeOutput() override; }; } // namespace gio diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx index 010d658ae777..9c3aa481b78e 100644 --- a/ucb/source/ucp/gio/gio_provider.cxx +++ b/ucb/source/ucp/gio/gio_provider.cxx @@ -30,8 +30,6 @@ namespace gio uno::Reference< css::ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - uno::RuntimeException, std::exception ) { SAL_INFO("ucb.ucp.gio", "QueryContent: " << Identifier->getContentIdentifier()); osl::MutexGuard aGuard( m_aMutex ); @@ -80,7 +78,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -100,7 +97,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); diff --git a/ucb/source/ucp/gio/gio_provider.hxx b/ucb/source/ucp/gio/gio_provider.hxx index 338811e098c2..d6ebed7047b2 100644 --- a/ucb/source/ucp/gio/gio_provider.hxx +++ b/ucb/source/ucp/gio/gio_provider.hxx @@ -34,26 +34,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -64,9 +58,7 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; }; } diff --git a/ucb/source/ucp/gio/gio_seekable.cxx b/ucb/source/ucp/gio/gio_seekable.cxx index 6566eff801f1..56b295809656 100644 --- a/ucb/source/ucp/gio/gio_seekable.cxx +++ b/ucb/source/ucp/gio/gio_seekable.cxx @@ -40,7 +40,6 @@ Seekable::~Seekable() } void SAL_CALL Seekable::truncate() - throw( io::IOException, uno::RuntimeException, std::exception ) { if (!mpStream) throw io::NotConnectedException(); @@ -55,7 +54,6 @@ void SAL_CALL Seekable::truncate() } void SAL_CALL Seekable::seek( sal_Int64 location ) - throw( lang::IllegalArgumentException, io::IOException, uno::RuntimeException, std::exception ) { if (!mpStream) throw io::NotConnectedException(); @@ -69,7 +67,7 @@ void SAL_CALL Seekable::seek( sal_Int64 location ) convertToIOException(pError, static_cast< cppu::OWeakObject * >(this)); } -sal_Int64 SAL_CALL Seekable::getPosition() throw( io::IOException, uno::RuntimeException, std::exception ) +sal_Int64 SAL_CALL Seekable::getPosition() { if (!mpStream) throw io::NotConnectedException(); @@ -77,7 +75,7 @@ sal_Int64 SAL_CALL Seekable::getPosition() throw( io::IOException, uno::RuntimeE return g_seekable_tell(mpStream); } -sal_Int64 SAL_CALL Seekable::getLength() throw( io::IOException, uno::RuntimeException, std::exception ) +sal_Int64 SAL_CALL Seekable::getLength() { if (!mpStream) throw io::NotConnectedException(); @@ -112,7 +110,7 @@ sal_Int64 SAL_CALL Seekable::getLength() throw( io::IOException, uno::RuntimeExc return nSize; } -uno::Any Seekable::queryInterface( const uno::Type &type ) throw( uno::RuntimeException, std::exception ) +uno::Any Seekable::queryInterface( const uno::Type &type ) { uno::Any aRet = ::cppu::queryInterface ( type, static_cast< XSeekable * >( this ) ); diff --git a/ucb/source/ucp/gio/gio_seekable.hxx b/ucb/source/ucp/gio/gio_seekable.hxx index 2781c6ba12cf..0d3a62dccde2 100644 --- a/ucb/source/ucp/gio/gio_seekable.hxx +++ b/ucb/source/ucp/gio/gio_seekable.hxx @@ -43,29 +43,19 @@ public: virtual ~Seekable() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type & type ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type & type ) override; virtual void SAL_CALL acquire() throw () override { OWeakObject::acquire(); } virtual void SAL_CALL release() throw() override { OWeakObject::release(); } // XSeekable - virtual void SAL_CALL seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL seek( sal_Int64 location ) override; - virtual sal_Int64 SAL_CALL getPosition() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual sal_Int64 SAL_CALL getPosition() override; - virtual sal_Int64 SAL_CALL getLength() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual sal_Int64 SAL_CALL getLength() override; // XTruncate - virtual void SAL_CALL truncate() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL truncate() override; }; } // namespace gio diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx index 6ece6a1d308c..2d6d3dedf114 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx @@ -168,7 +168,6 @@ void SAL_CALL HierarchyContent::release() // virtual uno::Any SAL_CALL HierarchyContent::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet = ContentImplHelper::queryInterface( rType ); @@ -197,7 +196,6 @@ XTYPEPROVIDER_COMMON_IMPL( HierarchyContent ); // virtual uno::Sequence< uno::Type > SAL_CALL HierarchyContent::getTypes() - throw( uno::RuntimeException, std::exception ) { cppu::OTypeCollection * pCollection = nullptr; @@ -276,7 +274,6 @@ uno::Sequence< uno::Type > SAL_CALL HierarchyContent::getTypes() // virtual OUString SAL_CALL HierarchyContent::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.comp.ucb.HierarchyContent" ); } @@ -285,7 +282,6 @@ OUString SAL_CALL HierarchyContent::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL HierarchyContent::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence< OUString > aSNS( 1 ); @@ -305,7 +301,6 @@ HierarchyContent::getSupportedServiceNames() // virtual OUString SAL_CALL HierarchyContent::getContentType() - throw( uno::RuntimeException, std::exception ) { return m_aProps.getContentType(); } @@ -314,7 +309,6 @@ OUString SAL_CALL HierarchyContent::getContentType() // virtual uno::Reference< ucb::XContentIdentifier > SAL_CALL HierarchyContent::getIdentifier() - throw( uno::RuntimeException, std::exception ) { // Transient? if ( m_eState == TRANSIENT ) @@ -335,9 +329,6 @@ uno::Any SAL_CALL HierarchyContent::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException, std::exception ) { uno::Any aRet; @@ -552,7 +543,6 @@ uno::Any SAL_CALL HierarchyContent::execute( // virtual void SAL_CALL HierarchyContent::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException, std::exception ) { // @@@ Generally, no action takes much time... } @@ -564,7 +554,6 @@ void SAL_CALL HierarchyContent::abort( sal_Int32 /*CommandId*/ ) // virtual uno::Sequence< ucb::ContentInfo > SAL_CALL HierarchyContent::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { return m_aProps.getCreatableContentsInfo(); } @@ -573,7 +562,6 @@ HierarchyContent::queryCreatableContentsInfo() // virtual uno::Reference< ucb::XContent > SAL_CALL HierarchyContent::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException, std::exception ) { if ( isFolder() ) { @@ -1058,7 +1046,6 @@ uno::Reference< sdbc::XRow > HierarchyContent::getPropertyValues( uno::Sequence< uno::Any > HierarchyContent::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1363,7 +1350,6 @@ uno::Sequence< uno::Any > HierarchyContent::setPropertyValues( void HierarchyContent::insert( sal_Int32 nNameClashResolve, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1509,7 +1495,6 @@ void HierarchyContent::insert( sal_Int32 nNameClashResolve, void HierarchyContent::destroy( bool bDeletePhysical, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { // @@@ take care about bDeletePhysical -> trashcan support @@ -1566,7 +1551,6 @@ void HierarchyContent::destroy( bool bDeletePhysical, void HierarchyContent::transfer( const ucb::TransferInfo& rInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.hxx b/ucb/source/ucp/hierarchy/hierarchycontent.hxx index 7bcd7a397db4..60b19b2aa71c 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.hxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.hxx @@ -167,23 +167,19 @@ private: css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void insert( sal_Int32 nNameClashResolve, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void destroy( bool bDeletePhysical, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); public: // Create existing content. Fail, if not already exists. @@ -203,46 +199,35 @@ public: virtual ~HierarchyContent() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XContent virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL - getIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + getIdentifier() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + abort( sal_Int32 CommandId ) override; // Additional interfaces @@ -250,11 +235,9 @@ public: // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // Non-interface methods. diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index 4337e17761c9..b9ba11f2eaa5 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -91,117 +91,81 @@ public: bool bReadOnly ); // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() 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; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XComponent virtual void SAL_CALL - dispose() - throw ( uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL - addEventListener( const uno::Reference< lang::XEventListener > & xListener ) - throw ( uno::RuntimeException, std::exception ) override; + addEventListener( const uno::Reference< lang::XEventListener > & xListener ) override; virtual void SAL_CALL removeEventListener( const uno::Reference< - lang::XEventListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) override; + lang::XEventListener > & aListener ) override; // XSingleServiceFactory virtual uno::Reference< uno::XInterface > SAL_CALL - createInstance() - throw ( uno::Exception, uno::RuntimeException, std::exception ) override; + createInstance() override; virtual uno::Reference< uno::XInterface > SAL_CALL - createInstanceWithArguments( const uno::Sequence< uno::Any > & aArguments ) - throw ( uno::Exception, uno::RuntimeException, std::exception ) override; + createInstanceWithArguments( const uno::Sequence< uno::Any > & aArguments ) override; // XHierarchicalNameAccess virtual uno::Any SAL_CALL - getByHierarchicalName( const OUString & aName ) - throw ( container::NoSuchElementException, uno::RuntimeException, std::exception ) override; + getByHierarchicalName( const OUString & aName ) override; virtual sal_Bool SAL_CALL - hasByHierarchicalName( const OUString & aName ) - throw ( uno::RuntimeException, std::exception ) override; + hasByHierarchicalName( const OUString & aName ) override; // XNameContainer virtual void SAL_CALL - insertByName( const OUString & aName, const uno::Any & aElement ) - throw ( lang::IllegalArgumentException, - container::ElementExistException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) override; + insertByName( const OUString & aName, const uno::Any & aElement ) override; virtual void SAL_CALL - removeByName( const OUString & Name ) - throw ( container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) override; + removeByName( const OUString & Name ) override; // XNameReplace ( base of XNameContainer ) virtual void SAL_CALL - replaceByName( const OUString & aName, const uno::Any & aElement ) - throw ( lang::IllegalArgumentException, - container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) override; + replaceByName( const OUString & aName, const uno::Any & aElement ) override; // XNameAccess ( base of XNameReplace ) virtual uno::Any SAL_CALL - getByName( const OUString & aName ) - throw ( container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) override; + getByName( const OUString & aName ) override; virtual uno::Sequence< OUString > SAL_CALL - getElementNames() - throw ( uno::RuntimeException, std::exception ) override; + getElementNames() override; virtual sal_Bool SAL_CALL - hasByName( const OUString & aName ) - throw ( uno::RuntimeException, std::exception ) override; + hasByName( const OUString & aName ) override; // XElementAccess ( base of XNameAccess ) virtual uno::Type SAL_CALL - getElementType() - throw ( uno::RuntimeException, std::exception ) override; + getElementType() override; virtual sal_Bool SAL_CALL - hasElements() - throw ( uno::RuntimeException, std::exception ) override; + hasElements() override; // XChangesNotifier virtual void SAL_CALL addChangesListener( const uno::Reference< - util::XChangesListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) override; + util::XChangesListener > & aListener ) override; virtual void SAL_CALL removeChangesListener( const uno::Reference< - util::XChangesListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) override; + util::XChangesListener > & aListener ) override; // XChangesBatch virtual void SAL_CALL - commitChanges() - throw ( lang::WrappedTargetException, uno::RuntimeException, std::exception ) override; + commitChanges() override; virtual sal_Bool SAL_CALL - hasPendingChanges() - throw ( uno::RuntimeException, std::exception ) override; + hasPendingChanges() override; virtual uno::Sequence< util::ElementChange > SAL_CALL - getPendingChanges() - throw ( uno::RuntimeException, std::exception ) override; + getPendingChanges() override; }; } // namespace hcp_impl @@ -240,7 +204,6 @@ void SAL_CALL HierarchyDataSource::release() } css::uno::Any SAL_CALL HierarchyDataSource::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -268,7 +231,6 @@ XSERVICEINFO_COMMOM_IMPL( HierarchyDataSource, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL HierarchyDataSource_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new HierarchyDataSource( ucbhelper::getComponentContext(rSMgr) )); @@ -292,7 +254,6 @@ ONE_INSTANCE_SERVICE_FACTORY_IMPL( HierarchyDataSource ); // virtual void SAL_CALL HierarchyDataSource::dispose() - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -308,7 +269,6 @@ void SAL_CALL HierarchyDataSource::dispose() // virtual void SAL_CALL HierarchyDataSource::addEventListener( const uno::Reference< lang::XEventListener > & Listener ) - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -323,7 +283,6 @@ void SAL_CALL HierarchyDataSource::addEventListener( // virtual void SAL_CALL HierarchyDataSource::removeEventListener( const uno::Reference< lang::XEventListener > & Listener ) - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -338,7 +297,6 @@ void SAL_CALL HierarchyDataSource::removeEventListener( // virtual uno::Reference< uno::XInterface > SAL_CALL HierarchyDataSource::createInstance( const OUString & aServiceSpecifier ) - throw ( uno::Exception, uno::RuntimeException, std::exception ) { // Create view to root node. @@ -358,7 +316,6 @@ uno::Reference< uno::XInterface > SAL_CALL HierarchyDataSource::createInstanceWithArguments( const OUString & ServiceSpecifier, const uno::Sequence< uno::Any > & Arguments ) - throw ( uno::Exception, uno::RuntimeException, std::exception ) { return createInstanceWithArguments( ServiceSpecifier, Arguments, true ); } @@ -367,7 +324,6 @@ HierarchyDataSource::createInstanceWithArguments( // virtual uno::Sequence< OUString > SAL_CALL HierarchyDataSource::getAvailableServiceNames() - throw ( uno::RuntimeException, std::exception ) { uno::Sequence< OUString > aNames( 2 ); aNames[ 0 ] = READ_SERVICE_NAME; @@ -384,7 +340,6 @@ HierarchyDataSource::createInstanceWithArguments( const OUString & ServiceSpecifier, const uno::Sequence< uno::Any > & Arguments, bool bCheckArgs ) - throw ( uno::Exception, uno::RuntimeException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -618,7 +573,6 @@ void SAL_CALL HierarchyDataAccess::release() // virtual uno::Any SAL_CALL HierarchyDataAccess::queryInterface( const uno::Type & aType ) - throw ( uno::RuntimeException, std::exception ) { // Interfaces supported in read-only and read-write mode. uno::Any aRet = cppu::queryInterface( aType, @@ -652,7 +606,6 @@ XTYPEPROVIDER_COMMON_IMPL( HierarchyDataAccess ); // virtual uno::Sequence< uno::Type > SAL_CALL HierarchyDataAccess::getTypes() - throw( uno::RuntimeException, std::exception ) { cppu::OTypeCollection * pCollection = nullptr; @@ -722,19 +675,16 @@ uno::Sequence< uno::Type > SAL_CALL HierarchyDataAccess::getTypes() // XServiceInfo methods. OUString SAL_CALL HierarchyDataAccess::getImplementationName() - throw( css::uno::RuntimeException, std::exception ) { return OUString("com.sun.star.comp.ucb.HierarchyDataAccess"); } sal_Bool SAL_CALL HierarchyDataAccess::supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException, std::exception ) { return cppu::supportsService( this, ServiceName ); } css::uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) { return { READ_SERVICE_NAME, READWRITE_SERVICE_NAME }; } @@ -745,7 +695,6 @@ css::uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getSupportedService // virtual void SAL_CALL HierarchyDataAccess::dispose() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< lang::XComponent > xOrig = ENSURE_ORIG_INTERFACE( lang::XComponent, C ); @@ -759,7 +708,6 @@ void SAL_CALL HierarchyDataAccess::dispose() // virtual void SAL_CALL HierarchyDataAccess::addEventListener( const uno::Reference< lang::XEventListener > & xListener ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< lang::XComponent > xOrig = ENSURE_ORIG_INTERFACE( lang::XComponent, C ); @@ -773,7 +721,6 @@ void SAL_CALL HierarchyDataAccess::addEventListener( // virtual void SAL_CALL HierarchyDataAccess::removeEventListener( const uno::Reference< lang::XEventListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< lang::XComponent > xOrig = ENSURE_ORIG_INTERFACE( lang::XComponent, C ); @@ -790,7 +737,6 @@ void SAL_CALL HierarchyDataAccess::removeEventListener( // virtual uno::Any SAL_CALL HierarchyDataAccess::getByHierarchicalName( const OUString & aName ) - throw ( container::NoSuchElementException, uno::RuntimeException, std::exception ) { uno::Reference< container::XHierarchicalNameAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XHierarchicalNameAccess, HNA ); @@ -805,7 +751,6 @@ uno::Any SAL_CALL HierarchyDataAccess::getByHierarchicalName( // virtual sal_Bool SAL_CALL HierarchyDataAccess::hasByHierarchicalName( const OUString & aName ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< container::XHierarchicalNameAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XHierarchicalNameAccess, HNA ); @@ -822,9 +767,6 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasByHierarchicalName( // virtual uno::Any SAL_CALL HierarchyDataAccess::getByName( const OUString & aName ) - throw ( container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { uno::Reference< container::XNameAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XNameAccess, NA ); @@ -837,7 +779,6 @@ uno::Any SAL_CALL HierarchyDataAccess::getByName( const OUString & aName ) // virtual uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getElementNames() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< container::XNameAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XNameAccess, NA ); @@ -850,7 +791,6 @@ uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getElementNames() // virtual sal_Bool SAL_CALL HierarchyDataAccess::hasByName( const OUString & aName ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< container::XNameAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XNameAccess, NA ); @@ -866,7 +806,6 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasByName( const OUString & aName ) // virtual uno::Type SAL_CALL HierarchyDataAccess::getElementType() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< container::XElementAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XElementAccess, EA ); @@ -879,7 +818,6 @@ uno::Type SAL_CALL HierarchyDataAccess::getElementType() // virtual sal_Bool SAL_CALL HierarchyDataAccess::hasElements() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< container::XElementAccess > xOrig = ENSURE_ORIG_INTERFACE( container::XElementAccess, EA ); @@ -896,7 +834,6 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasElements() // virtual void SAL_CALL HierarchyDataAccess::addChangesListener( const uno::Reference< util::XChangesListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< util::XChangesNotifier > xOrig = ENSURE_ORIG_INTERFACE( util::XChangesNotifier, CN ); @@ -910,7 +847,6 @@ void SAL_CALL HierarchyDataAccess::addChangesListener( // virtual void SAL_CALL HierarchyDataAccess::removeChangesListener( const uno::Reference< util::XChangesListener > & aListener ) - throw ( uno::RuntimeException, std::exception ) { uno::Reference< util::XChangesNotifier > xOrig = ENSURE_ORIG_INTERFACE( util::XChangesNotifier, CN ); @@ -926,7 +862,6 @@ void SAL_CALL HierarchyDataAccess::removeChangesListener( // virtual uno::Reference< uno::XInterface > SAL_CALL HierarchyDataAccess::createInstance() - throw ( uno::Exception, uno::RuntimeException, std::exception ) { uno::Reference< lang::XSingleServiceFactory > xOrig = ENSURE_ORIG_INTERFACE( lang::XSingleServiceFactory, SSF ); @@ -941,7 +876,6 @@ uno::Reference< uno::XInterface > SAL_CALL HierarchyDataAccess::createInstance() uno::Reference< uno::XInterface > SAL_CALL HierarchyDataAccess::createInstanceWithArguments( const uno::Sequence< uno::Any > & aArguments ) - throw ( uno::Exception, uno::RuntimeException, std::exception ) { uno::Reference< lang::XSingleServiceFactory > xOrig = ENSURE_ORIG_INTERFACE( lang::XSingleServiceFactory, SSF ); @@ -959,10 +893,6 @@ HierarchyDataAccess::createInstanceWithArguments( void SAL_CALL HierarchyDataAccess::insertByName( const OUString & aName, const uno::Any & aElement ) - throw ( lang::IllegalArgumentException, - container::ElementExistException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { uno::Reference< container::XNameContainer > xOrig = ENSURE_ORIG_INTERFACE( container::XNameContainer, NC ); @@ -976,9 +906,6 @@ HierarchyDataAccess::insertByName( const OUString & aName, // virtual void SAL_CALL HierarchyDataAccess::removeByName( const OUString & Name ) - throw ( container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { uno::Reference< container::XNameContainer > xOrig = ENSURE_ORIG_INTERFACE( container::XNameContainer, NC ); @@ -995,10 +922,6 @@ HierarchyDataAccess::removeByName( const OUString & Name ) // virtual void SAL_CALL HierarchyDataAccess::replaceByName( const OUString & aName, const uno::Any & aElement ) - throw ( lang::IllegalArgumentException, - container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { uno::Reference< container::XNameReplace > xOrig = ENSURE_ORIG_INTERFACE( container::XNameReplace, NR ); @@ -1014,7 +937,6 @@ void SAL_CALL HierarchyDataAccess::replaceByName( const OUString & aName, // virtual void SAL_CALL HierarchyDataAccess::commitChanges() - throw ( lang::WrappedTargetException, uno::RuntimeException, std::exception ) { uno::Reference< util::XChangesBatch > xOrig = ENSURE_ORIG_INTERFACE( util::XChangesBatch, CB ); @@ -1027,7 +949,6 @@ void SAL_CALL HierarchyDataAccess::commitChanges() // virtual sal_Bool SAL_CALL HierarchyDataAccess::hasPendingChanges() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< util::XChangesBatch > xOrig = ENSURE_ORIG_INTERFACE( util::XChangesBatch, CB ); @@ -1041,7 +962,6 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasPendingChanges() // virtual uno::Sequence< util::ElementChange > SAL_CALL HierarchyDataAccess::getPendingChanges() - throw ( uno::RuntimeException, std::exception ) { uno::Reference< util::XChangesBatch > xOrig = ENSURE_ORIG_INTERFACE( util::XChangesBatch, CB ); diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx index 2f9b5cf79295..244063e5ee0d 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx @@ -51,20 +51,16 @@ public: virtual ~HierarchyDataSource() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -73,30 +69,20 @@ public: css::lang::XMultiServiceFactory >& rxServiceMgr ); // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; // XMultiServiceFactory - virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString & aServiceSpecifier ) - throw ( css::uno::Exception, - css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString & aServiceSpecifier ) override; virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString & ServiceSpecifier, const css::uno::Sequence< - css::uno::Any > & Arguments ) - throw ( css::uno::Exception, - css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() - throw ( css::uno::RuntimeException, std::exception ) override; + css::uno::Any > & Arguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override; // Non-Interface methods @@ -105,8 +91,7 @@ private: css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString & ServiceSpecifier, const css::uno::Sequence< css::uno::Any > & Arguments, - bool bCheckArgs ) - throw ( css::uno::Exception, css::uno::RuntimeException ); + bool bCheckArgs ); css::uno::Reference< css::lang::XMultiServiceFactory > getConfigProvider(); diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx index 3796652a9e79..8c05f4b9df8f 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx @@ -384,7 +384,6 @@ void HierarchyResultSetDataSupplier::close() // virtual void HierarchyResultSetDataSupplier::validate() - throw( ucb::ResultSetException ) { } diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx index 27e87c8f8495..8982a2905a06 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx @@ -64,8 +64,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } // namespace hierarchy_ucp diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx index 3a7d3eb582f9..48ed7f1b588e 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx @@ -72,7 +72,6 @@ void SAL_CALL HierarchyContentProvider::release() } css::uno::Any SAL_CALL HierarchyContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -100,7 +99,6 @@ XSERVICEINFO_COMMOM_IMPL( HierarchyContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL HierarchyContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new HierarchyContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -127,7 +125,6 @@ ONE_INSTANCE_SERVICE_FACTORY_IMPL( HierarchyContentProvider ); uno::Reference< ucb::XContent > SAL_CALL HierarchyContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& Identifier ) - throw( ucb::IllegalIdentifierException, uno::RuntimeException, std::exception ) { HierarchyUri aUri( Identifier->getContentIdentifier() ); if ( !aUri.isValid() ) @@ -161,7 +158,6 @@ HierarchyContentProvider::queryContent( // virtual void SAL_CALL HierarchyContentProvider::initialize( const uno::Sequence< uno::Any >& aArguments ) - throw( uno::Exception, uno::RuntimeException, std::exception ) { if ( aArguments.getLength() > 0 ) OSL_FAIL( "HierarchyContentProvider::initialize : not supported!" ); diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx index 8eb74d17519a..4bde1b14600f 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx @@ -74,26 +74,20 @@ public: virtual ~HierarchyContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -104,15 +98,11 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // XInitialization virtual void SAL_CALL - initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) - throw( css::uno::Exception, - css::uno::RuntimeException, std::exception ) override; + initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; // Non-Interface methods css::uno::Reference< css::lang::XMultiServiceFactory > diff --git a/ucb/source/ucp/image/ucpimage.cxx b/ucb/source/ucp/image/ucpimage.cxx index 723e7a22aaf0..f25b17636029 100644 --- a/ucb/source/ucp/image/ucpimage.cxx +++ b/ucb/source/ucp/image/ucpimage.cxx @@ -46,16 +46,13 @@ public: {} private: - OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException, std::exception) override + OUString SAL_CALL getImplementationName() override { return OUString("com.sun.star.comp.ucb.ImageContentProvider"); } - sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException, std::exception) override + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override { return cppu::supportsService(this, ServiceName); } - css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException, std::exception) override + css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override { return css::uno::Sequence<OUString>{ "com.sun.star.ucb.ImageContentProvider"}; @@ -63,9 +60,6 @@ private: css::uno::Reference<css::ucb::XContent> SAL_CALL queryContent( css::uno::Reference<css::ucb::XContentIdentifier> const & Identifier) - throw ( - css::ucb::IllegalIdentifierException, css::uno::RuntimeException, - std::exception) override { css::uno::Reference<css::uno::XComponentContext> context; @@ -145,8 +139,7 @@ private: sal_Int32 SAL_CALL compareContentIds( css::uno::Reference<css::ucb::XContentIdentifier> const & Id1, - css::uno::Reference<css::ucb::XContentIdentifier> const & Id2) - throw (css::uno::RuntimeException, std::exception) override + css::uno::Reference<css::ucb::XContentIdentifier> const & Id2) override { return Id1->getContentIdentifier().compareTo( Id2->getContentIdentifier()); diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 983d7b54e3f0..5a4153124bd6 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -291,7 +291,6 @@ void SAL_CALL Content::release() // virtual uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet; @@ -311,7 +310,6 @@ XTYPEPROVIDER_COMMON_IMPL( Content ); // virtual uno::Sequence< uno::Type > SAL_CALL Content::getTypes() - throw( uno::RuntimeException, std::exception ) { cppu::OTypeCollection * pCollection = nullptr; @@ -390,7 +388,6 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() // virtual OUString SAL_CALL Content::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.comp.ucb.PackageContent" ); } @@ -398,7 +395,6 @@ OUString SAL_CALL Content::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence< OUString > aSNS( 1 ); if ( isFolder() ) @@ -415,7 +411,6 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() // virtual OUString SAL_CALL Content::getContentType() - throw( uno::RuntimeException, std::exception ) { return m_aProps.aContentType; } @@ -429,9 +424,6 @@ uno::Any SAL_CALL Content::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException, std::exception ) { uno::Any aRet; @@ -669,7 +661,6 @@ uno::Any SAL_CALL Content::execute( // virtual void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException, std::exception ) { // @@@ Implement logic to abort running commands, if this makes // sense for your content. @@ -682,7 +673,6 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) // virtual uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { return m_aProps.getCreatableContentsInfo( m_aUri ); } @@ -691,7 +681,6 @@ Content::queryCreatableContentsInfo() // virtual uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException, std::exception ) { if ( isFolder() ) { @@ -1016,7 +1005,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Sequence< uno::Any > Content::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1424,7 +1412,6 @@ uno::Sequence< uno::Any > Content::setPropertyValues( uno::Any Content::open( const ucb::OpenCommandArgument2& rArg, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, std::exception ) { if ( rArg.Mode == ucb::OpenMode::ALL || rArg.Mode == ucb::OpenMode::FOLDERS || @@ -1573,7 +1560,6 @@ void Content::insert( const uno::Reference< io::XInputStream >& xStream, sal_Int32 nNameClashResolve, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1731,7 +1717,6 @@ void Content::insert( void Content::destroy( bool bDeletePhysical, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, std::exception ) { // @@@ take care about bDeletePhysical -> trashcan support @@ -1777,7 +1762,6 @@ void Content::destroy( void Content::transfer( const ucb::TransferInfo& rInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); diff --git a/ucb/source/ucp/package/pkgcontent.hxx b/ucb/source/ucp/package/pkgcontent.hxx index 865fe9167b15..f6b0ad555b56 100644 --- a/ucb/source/ucp/package/pkgcontent.hxx +++ b/ucb/source/ucp/package/pkgcontent.hxx @@ -134,8 +134,7 @@ private: /// @throws css::uno::Exception css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); css::uno::Reference< css::container::XHierarchicalNameAccess > getPackage( const PackageUri& rURI ); @@ -176,25 +175,21 @@ private: /// @throws css::uno::Exception css::uno::Any open( const css::ucb::OpenCommandArgument2& rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream >& xStream, sal_Int32 nNameClashResolve, const css::uno::Reference< - css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void destroy( bool bDeletePhysical, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); css::uno::Reference< css::io::XInputStream > getInputStream(); @@ -218,43 +213,33 @@ public: virtual ~Content() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XContent virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + abort( sal_Int32 CommandId ) override; // Additional interfaces @@ -262,11 +247,9 @@ public: // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // Non-interface methods. diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx index 1137516fbb6e..6ed79632272b 100644 --- a/ucb/source/ucp/package/pkgdatasupplier.cxx +++ b/ucb/source/ucp/package/pkgdatasupplier.cxx @@ -430,7 +430,6 @@ void DataSupplier::close() // virtual void DataSupplier::validate() - throw( ucb::ResultSetException ) { if ( m_pImpl->m_bThrowException ) throw ucb::ResultSetException(); diff --git a/ucb/source/ucp/package/pkgdatasupplier.hxx b/ucb/source/ucp/package/pkgdatasupplier.hxx index 5b40c24c437a..678fd2940218 100644 --- a/ucb/source/ucp/package/pkgdatasupplier.hxx +++ b/ucb/source/ucp/package/pkgdatasupplier.hxx @@ -56,8 +56,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; OUString assembleChildURL( const OUString& aName ); }; diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index 4095c2f64a8b..8178245b8fe9 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -62,8 +62,7 @@ public: // XInterface virtual uno::Any SAL_CALL - queryInterface( const uno::Type& aType ) - throw( uno::RuntimeException, std::exception ) override + queryInterface( const uno::Type& aType ) override { return m_xNA->queryInterface( aType ); } virtual void SAL_CALL acquire() throw() override @@ -74,12 +73,10 @@ public: // XHierarchicalNameAccess virtual uno::Any SAL_CALL - getByHierarchicalName( const OUString& aName ) - throw( container::NoSuchElementException, uno::RuntimeException, std::exception ) override + getByHierarchicalName( const OUString& aName ) override { return m_xNA->getByHierarchicalName( aName ); } virtual sal_Bool SAL_CALL - hasByHierarchicalName( const OUString& aName ) - throw( uno::RuntimeException, std::exception ) override + hasByHierarchicalName( const OUString& aName ) override { return m_xNA->hasByHierarchicalName( aName ); } }; @@ -128,7 +125,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -154,7 +150,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -180,7 +175,6 @@ ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider ); // virtual uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& Identifier ) - throw( ucb::IllegalIdentifierException, uno::RuntimeException, std::exception ) { if ( !Identifier.is() ) return uno::Reference< ucb::XContent >(); diff --git a/ucb/source/ucp/package/pkgprovider.hxx b/ucb/source/ucp/package/pkgprovider.hxx index dad04ea69091..c0c1b5b75fd6 100644 --- a/ucb/source/ucp/package/pkgprovider.hxx +++ b/ucb/source/ucp/package/pkgprovider.hxx @@ -52,26 +52,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -82,9 +76,7 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // Non-interface methods. diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 189d8d7365ce..5b5e5ec9f506 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -183,7 +183,6 @@ void SAL_CALL Content::release() // virtual uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet = ContentImplHelper::queryInterface( rType ); @@ -210,7 +209,6 @@ XTYPEPROVIDER_COMMON_IMPL( Content ); // virtual uno::Sequence< uno::Type > SAL_CALL Content::getTypes() - throw( uno::RuntimeException, std::exception ) { cppu::OTypeCollection * pCollection = nullptr; @@ -289,7 +287,6 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() // virtual OUString SAL_CALL Content::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.comp.ucb.TransientDocumentsContent" ); } @@ -297,7 +294,6 @@ OUString SAL_CALL Content::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -321,7 +317,6 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() // virtual OUString SAL_CALL Content::getContentType() - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); return m_aProps.getContentType(); @@ -331,7 +326,6 @@ OUString SAL_CALL Content::getContentType() // virtual uno::Reference< ucb::XContentIdentifier > SAL_CALL Content::getIdentifier() - throw( uno::RuntimeException, std::exception ) { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -355,9 +349,6 @@ uno::Any SAL_CALL Content::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException, std::exception ) { uno::Any aRet; @@ -649,7 +640,6 @@ uno::Any SAL_CALL Content::execute( // virtual void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException, std::exception ) { } @@ -660,7 +650,6 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) // virtual uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { return m_aProps.getCreatableContentsInfo(); } @@ -669,7 +658,6 @@ Content::queryCreatableContentsInfo() // virtual uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException, std::exception ) { if ( m_aProps.isContentCreator() ) { @@ -1108,7 +1096,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Sequence< uno::Any > Content::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1384,7 +1371,6 @@ uno::Sequence< uno::Any > Content::setPropertyValues( uno::Any Content::open( const ucb::OpenCommandArgument2& rArg, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception ) { if ( rArg.Mode == ucb::OpenMode::ALL || rArg.Mode == ucb::OpenMode::FOLDERS || @@ -1568,7 +1554,6 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData, sal_Int32 nNameClashResolve, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -1740,7 +1725,6 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData, void Content::destroy( bool bDeletePhysical, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { // @@@ take care about bDeletePhysical -> trashcan support @@ -1889,7 +1873,6 @@ void Content::notifyChildInserted( const OUString & rRelativeChildUri ) void Content::transfer( const ucb::TransferInfo& rInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex ); @@ -2329,9 +2312,6 @@ bool Content::loadData( ContentProvider* pProvider, bool Content::storeData( const uno::Reference< io::XInputStream >& xData, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest, - css::uno::RuntimeException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -2726,8 +2706,6 @@ static OUString obtainPassword( const OUString & rName, task::PasswordRequestMode eMode, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest ) { rtl::Reference< DocumentPasswordRequest > xRequest = new DocumentPasswordRequest( eMode, rName ); @@ -2781,9 +2759,6 @@ static OUString obtainPassword( uno::Reference< io::XInputStream > Content::getInputStream( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest, - uno::RuntimeException ) { OUString aUri; OUString aPassword; @@ -2827,9 +2802,6 @@ static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream( const OUString & rUri, ContentProvider * pProvider, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest, - uno::RuntimeException ) { OUString aPassword; bool bPasswordRequested = false; @@ -2858,9 +2830,6 @@ static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream( uno::Reference< io::XOutputStream > Content::getTruncatedOutputStream( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest, - css::uno::RuntimeException ) { OSL_ENSURE( m_aProps.getType() == STREAM, "Content::getTruncatedOutputStream - content is no stream!" ); @@ -2874,9 +2843,6 @@ uno::Reference< io::XOutputStream > Content::getTruncatedOutputStream( uno::Reference< io::XStream > Content::getStream( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest, - uno::RuntimeException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); diff --git a/ucb/source/ucp/tdoc/tdoc_content.hxx b/ucb/source/ucp/tdoc/tdoc_content.hxx index 45be23bc6bc3..25502ba5499b 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.hxx +++ b/ucb/source/ucp/tdoc/tdoc_content.hxx @@ -124,10 +124,7 @@ private: /// @throws css::task::DocumentPasswordRequest /// @throws css::uno::RuntimeException bool storeData( const css::uno::Reference< css::io::XInputStream >& xData, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::ucb::CommandFailedException, - css::task::DocumentPasswordRequest, - css::uno::RuntimeException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); void renameData( const css::uno::Reference< css::ucb::XContentIdentifier >& xOldId, const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId ); bool removeData(); @@ -150,30 +147,25 @@ private: /// @throws css::uno::Exception setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception css::uno::Any open( const css::ucb::OpenCommandArgument2& rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream >& xData, sal_Int32 nNameClashResolve, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void destroy( bool bDeletePhysical, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); static css::uno::Reference< css::sdbc::XRow > getPropertyValues( const css::uno::Reference< css::uno::XComponentContext >& rxContext, @@ -193,20 +185,14 @@ private: /// @throws css::task::DocumentPasswordRequest /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XInputStream > - getInputStream( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( css::ucb::CommandFailedException, - css::task::DocumentPasswordRequest, - css::uno::RuntimeException ); + getInputStream( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::ucb::CommandFailedException /// @throws css::task::DocumentPasswordRequest /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XOutputStream > getTruncatedOutputStream( - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( css::ucb::CommandFailedException, - css::task::DocumentPasswordRequest, - css::uno::RuntimeException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); css::uno::Reference< css::ucb::XContent > queryChildContent( const OUString & rRelativeChildUri ); @@ -215,10 +201,7 @@ private: /// @throws css::task::DocumentPasswordRequest /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XStream > - getStream( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( css::ucb::CommandFailedException, - css::task::DocumentPasswordRequest, - css::uno::RuntimeException ); + getStream( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); public: // Create existing content. Fail, if not already exists. @@ -237,46 +220,35 @@ public: virtual ~Content() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XContent virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL - getIdentifier() - throw( css::uno::RuntimeException, std::exception ) override; + getIdentifier() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + abort( sal_Int32 CommandId ) override; // Additional interfaces @@ -284,11 +256,9 @@ public: // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // Non-interface methods. diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx index c8213ae8e7f5..b9e4d3dae2db 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx @@ -378,7 +378,6 @@ void ResultSetDataSupplier::close() // virtual void ResultSetDataSupplier::validate() - throw( ucb::ResultSetException ) { if ( m_pImpl->m_bThrowException ) throw ucb::ResultSetException(); diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx index a6cf5f1ba522..e83b48bd9a88 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx @@ -62,8 +62,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } // namespace tdoc_ucp diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx index 6994349dfdbe..cb1ffc7bfe07 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx @@ -58,15 +58,12 @@ using namespace tdoc_ucp; // virtual void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::queryClosing( const lang::EventObject& /*Source*/, sal_Bool /*GetsOwnership*/ ) - throw ( util::CloseVetoException, - uno::RuntimeException, std::exception ) { } void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::notifyClosing( const lang::EventObject& Source ) - throw ( uno::RuntimeException, std::exception ) { if (!m_pManager) return; // disposed? @@ -83,7 +80,6 @@ void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::notifyClosin // virtual void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::disposing( const lang::EventObject& /*Source*/ ) - throw ( uno::RuntimeException, std::exception ) { } @@ -171,7 +167,6 @@ getDocumentId( const uno::Reference< uno::XInterface > & xDoc ) // virtual void SAL_CALL OfficeDocumentsManager::documentEventOccured( const document::DocumentEvent & Event ) - throw ( uno::RuntimeException, std::exception ) { /* Events documentation: OOo Developer's Guide / Writing UNO Components / @@ -433,7 +428,6 @@ void SAL_CALL OfficeDocumentsManager::documentEventOccured( // virtual void SAL_CALL OfficeDocumentsManager::disposing( const lang::EventObject& /*Source*/ ) - throw ( uno::RuntimeException, std::exception ) { } diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx index 7dd5a07459ec..7f21e4ce8658 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx @@ -71,18 +71,14 @@ namespace tdoc_ucp { // util::XCloseListener virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, - sal_Bool GetsOwnership ) - throw (css::util::CloseVetoException, - css::uno::RuntimeException, std::exception) override; + sal_Bool GetsOwnership ) override; virtual void SAL_CALL notifyClosing( - const css::lang::EventObject& Source ) - throw (css::uno::RuntimeException, std::exception) override; + const css::lang::EventObject& Source ) override; // lang::XEventListener (base of util::XCloseListener) virtual void SAL_CALL disposing( - const css::lang::EventObject & Source ) - throw ( css::uno::RuntimeException, std::exception ) override; + const css::lang::EventObject & Source ) override; void Dispose() { m_pManager = nullptr; } @@ -100,13 +96,11 @@ namespace tdoc_ucp { // document::XDocumentEventListener virtual void SAL_CALL documentEventOccured( - const css::document::DocumentEvent & Event ) - throw ( css::uno::RuntimeException, std::exception ) override; + const css::document::DocumentEvent & Event ) override; // lang::XEventListener (base of document::XDocumentEventListener) virtual void SAL_CALL disposing( - const css::lang::EventObject & Source ) - throw ( css::uno::RuntimeException, std::exception ) override; + const css::lang::EventObject & Source ) override; // Non-interface css::uno::Reference< css::embed::XStorage > diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx index b4a27a8951fb..0ec5fbfe00e3 100644 --- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx +++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx @@ -54,7 +54,6 @@ DocumentContentFactory::~DocumentContentFactory() // virtual OUString SAL_CALL DocumentContentFactory::getImplementationName() - throw ( uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } @@ -62,7 +61,6 @@ OUString SAL_CALL DocumentContentFactory::getImplementationName() // virtual sal_Bool SAL_CALL DocumentContentFactory::supportsService( const OUString& ServiceName ) - throw ( uno::RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } @@ -70,7 +68,6 @@ DocumentContentFactory::supportsService( const OUString& ServiceName ) // virtual uno::Sequence< OUString > SAL_CALL DocumentContentFactory::getSupportedServiceNames() - throw ( uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } @@ -100,7 +97,6 @@ DocumentContentFactory::getSupportedServiceNames_Static() uno::Reference< ucb::XContent > SAL_CALL DocumentContentFactory::createDocumentContent( const uno::Reference< frame::XModel >& Model ) - throw ( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { uno::Reference< frame::XTransientDocumentsDocumentContentFactory > xDocFac; try @@ -129,7 +125,6 @@ DocumentContentFactory::createDocumentContent( static uno::Reference< uno::XInterface > SAL_CALL DocumentContentFactory_CreateInstance( const uno::Reference< lang::XMultiServiceFactory> & rSMgr ) - throw( uno::Exception ) { lang::XServiceInfo * pX = static_cast< lang::XServiceInfo * >( new DocumentContentFactory( rSMgr ) ); diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx index 866c7a778c5f..61786dafb1ea 100644 --- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx +++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx @@ -38,22 +38,17 @@ public: virtual ~DocumentContentFactory() override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() - throw ( css::uno::RuntimeException, std::exception ) override; + virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL - supportsService( const OUString& ServiceName ) - throw ( css::uno::RuntimeException, std::exception ) override; + supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw ( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XTransientDocumentsDocumentContentFactory virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createDocumentContent( const css::uno::Reference< css::frame::XModel >& Model ) - throw ( css::lang::IllegalArgumentException, - css::uno::RuntimeException, std::exception ) override; + createDocumentContent( const css::uno::Reference< css::frame::XModel >& Model ) override; // Non-UNO interfaces static OUString diff --git a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx index 3e497f9a243b..439f60df4b34 100644 --- a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx +++ b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx @@ -44,28 +44,22 @@ namespace tdoc_ucp : InteractionContinuation( pRequest ) {} // XInterface - virtual uno::Any SAL_CALL queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) override; + virtual uno::Any SAL_CALL queryInterface( const uno::Type & rType ) override; virtual void SAL_CALL acquire() throw () override; virtual void SAL_CALL release() throw () override; // XTypeProvider - virtual uno::Sequence< uno::Type > SAL_CALL getTypes() - throw ( uno::RuntimeException, std::exception ) override; - virtual uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw ( uno::RuntimeException, std::exception ) override; + virtual uno::Sequence< uno::Type > SAL_CALL getTypes() override; + virtual uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; // XInteractionContinuation - virtual void SAL_CALL select() - throw ( uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL select() override; // XInteractionPassword - virtual void SAL_CALL setPassword( const OUString & aPasswd ) - throw ( uno::RuntimeException, std::exception ) override; - virtual OUString SAL_CALL getPassword() - throw ( uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL setPassword( const OUString & aPasswd ) override; + virtual OUString SAL_CALL getPassword() override; private: osl::Mutex m_aMutex; @@ -99,7 +93,6 @@ void SAL_CALL InteractionSupplyPassword::release() // virtual uno::Any SAL_CALL InteractionSupplyPassword::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet = cppu::queryInterface( rType, static_cast< lang::XTypeProvider * >( this ), @@ -117,7 +110,6 @@ InteractionSupplyPassword::queryInterface( const uno::Type & rType ) // virtual uno::Sequence< sal_Int8 > SAL_CALL InteractionSupplyPassword::getImplementationId() - throw( uno::RuntimeException, std::exception ) { return css::uno::Sequence<sal_Int8>(); } @@ -125,7 +117,6 @@ InteractionSupplyPassword::getImplementationId() // virtual uno::Sequence< uno::Type > SAL_CALL InteractionSupplyPassword::getTypes() - throw( uno::RuntimeException, std::exception ) { static cppu::OTypeCollection * pCollection = nullptr; if ( !pCollection ) @@ -148,7 +139,6 @@ uno::Sequence< uno::Type > SAL_CALL InteractionSupplyPassword::getTypes() // virtual void SAL_CALL InteractionSupplyPassword::select() - throw( uno::RuntimeException, std::exception ) { recordSelection(); } @@ -160,7 +150,6 @@ void SAL_CALL InteractionSupplyPassword::select() // virtual void SAL_CALL InteractionSupplyPassword::setPassword( const OUString& aPasswd ) - throw ( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); m_aPassword = aPasswd; @@ -168,7 +157,6 @@ InteractionSupplyPassword::setPassword( const OUString& aPasswd ) // virtual OUString SAL_CALL InteractionSupplyPassword::getPassword() - throw ( uno::RuntimeException, std::exception ) { osl::MutexGuard aGuard( m_aMutex ); return m_aPassword; diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx index 580a115e4a87..4c80a626035d 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.cxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx @@ -77,7 +77,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -105,7 +104,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -132,7 +130,6 @@ ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider ); uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& Identifier ) - throw( ucb::IllegalIdentifierException, uno::RuntimeException, std::exception ) { Uri aUri( Identifier->getContentIdentifier() ); if ( !aUri.isValid() ) @@ -168,7 +165,6 @@ ContentProvider::queryContent( uno::Reference< ucb::XContent > SAL_CALL ContentProvider::createDocumentContent( const uno::Reference< frame::XModel >& Model ) - throw ( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { // model -> id -> content identifier -> queryContent if ( m_xDocsMgr.is() ) @@ -403,7 +399,6 @@ ContentProvider::queryStorageClone( const OUString & rUri ) const uno::Reference< io::XInputStream > ContentProvider::queryInputStream( const OUString & rUri, const OUString & rPassword ) const - throw ( packages::WrongPasswordException, css::uno::RuntimeException ) { if ( m_xStgElemFac.is() ) { @@ -441,8 +436,6 @@ uno::Reference< io::XOutputStream > ContentProvider::queryOutputStream( const OUString & rUri, const OUString & rPassword, bool bTruncate ) const - throw ( packages::WrongPasswordException, - uno::RuntimeException ) { if ( m_xStgElemFac.is() ) { @@ -482,7 +475,6 @@ uno::Reference< io::XStream > ContentProvider::queryStream( const OUString & rUri, const OUString & rPassword, bool bTruncate ) const - throw ( packages::WrongPasswordException, uno::RuntimeException ) { if ( m_xStgElemFac.is() ) { diff --git a/ucb/source/ucp/tdoc/tdoc_provider.hxx b/ucb/source/ucp/tdoc/tdoc_provider.hxx index 5e70d04e044c..e99f79301e8e 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.hxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.hxx @@ -60,26 +60,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -90,16 +84,12 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // XTransientDocumentsDocumentContentFactory virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createDocumentContent( const css::uno::Reference< - css::frame::XModel >& Model ) - throw ( css::lang::IllegalArgumentException, - css::uno::RuntimeException, std::exception ) override; + css::frame::XModel >& Model ) override; // Non-UNO interfaces css::uno::Reference< css::embed::XStorage > @@ -112,27 +102,21 @@ public: /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XInputStream > queryInputStream( const OUString & rUri, - const OUString & rPassword ) const - throw ( css::packages::WrongPasswordException, - css::uno::RuntimeException ); + const OUString & rPassword ) const; /// @throws css::packages::WrongPasswordException /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XOutputStream > queryOutputStream( const OUString & rUri, const OUString & rPassword, - bool bTruncate ) const - throw ( css::packages::WrongPasswordException, - css::uno::RuntimeException ); + bool bTruncate ) const; /// @throws css::packages::WrongPasswordException /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XStream > queryStream( const OUString & rUri, const OUString & rPassword, - bool bTruncate ) const - throw ( css::packages::WrongPasswordException, - css::uno::RuntimeException ); + bool bTruncate ) const; bool queryNamesOfChildren( const OUString & rUri, diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx index 4eb418dba25c..8046f938de2a 100644 --- a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx +++ b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx @@ -146,7 +146,6 @@ Storage::~Storage() // virtual uno::Any SAL_CALL Storage::queryInterface( const uno::Type& aType ) - throw ( uno::RuntimeException, std::exception ) { // First, try to use interfaces implemented by myself and base class(es) uno::Any aRet = StorageUNOBase::queryInterface( aType ); @@ -187,7 +186,6 @@ void SAL_CALL Storage::release() // virtual uno::Sequence< uno::Type > SAL_CALL Storage::getTypes() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedTypeProv->getTypes(); } @@ -195,7 +193,6 @@ uno::Sequence< uno::Type > SAL_CALL Storage::getTypes() // virtual uno::Sequence< sal_Int8 > SAL_CALL Storage::getImplementationId() - throw ( uno::RuntimeException, std::exception ) { return css::uno::Sequence<sal_Int8>(); } @@ -206,7 +203,6 @@ uno::Sequence< sal_Int8 > SAL_CALL Storage::getImplementationId() // virtual void SAL_CALL Storage::dispose() - throw ( uno::RuntimeException, std::exception ) { m_xWrappedStorage->dispose(); } @@ -215,7 +211,6 @@ void SAL_CALL Storage::dispose() // virtual void SAL_CALL Storage::addEventListener( const uno::Reference< lang::XEventListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { m_xWrappedStorage->addEventListener( xListener ); } @@ -223,7 +218,6 @@ void SAL_CALL Storage::addEventListener( // virtual void SAL_CALL Storage::removeEventListener( const uno::Reference< lang::XEventListener >& aListener ) - throw (uno::RuntimeException, std::exception) { m_xWrappedStorage->removeEventListener( aListener ); } @@ -234,7 +228,6 @@ void SAL_CALL Storage::removeEventListener( // virtual uno::Type SAL_CALL Storage::getElementType() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedStorage->getElementType(); } @@ -242,7 +235,6 @@ uno::Type SAL_CALL Storage::getElementType() // virtual sal_Bool SAL_CALL Storage::hasElements() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedStorage->hasElements(); } @@ -253,9 +245,6 @@ sal_Bool SAL_CALL Storage::hasElements() // virtual uno::Any SAL_CALL Storage::getByName( const OUString& aName ) - throw ( container::NoSuchElementException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->getByName( aName ); } @@ -263,7 +252,6 @@ uno::Any SAL_CALL Storage::getByName( const OUString& aName ) // virtual uno::Sequence< OUString > SAL_CALL Storage::getElementNames() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedStorage->getElementNames(); } @@ -271,7 +259,6 @@ uno::Sequence< OUString > SAL_CALL Storage::getElementNames() // virtual sal_Bool SAL_CALL Storage::hasByName( const OUString& aName ) - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedStorage->hasByName( aName ); } @@ -283,11 +270,6 @@ sal_Bool SAL_CALL Storage::hasByName( const OUString& aName ) // virtual void SAL_CALL Storage::copyToStorage( const uno::Reference< embed::XStorage >& xDest ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { m_xWrappedStorage->copyToStorage( xDest ); } @@ -296,12 +278,6 @@ void SAL_CALL Storage::copyToStorage( // virtual uno::Reference< io::XStream > SAL_CALL Storage::openStreamElement( const OUString& aStreamName, sal_Int32 nOpenMode ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - packages::WrongPasswordException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->openStreamElement( aStreamName, nOpenMode ); } @@ -312,13 +288,6 @@ uno::Reference< io::XStream > SAL_CALL Storage::openEncryptedStreamElement( const OUString& aStreamName, sal_Int32 nOpenMode, const OUString& aPassword ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - packages::NoEncryptionException, - packages::WrongPasswordException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->openEncryptedStreamElement( aStreamName, nOpenMode, aPassword ); @@ -328,11 +297,6 @@ uno::Reference< io::XStream > SAL_CALL Storage::openEncryptedStreamElement( // virtual uno::Reference< embed::XStorage > SAL_CALL Storage::openStorageElement( const OUString& aStorName, sal_Int32 nOpenMode ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->openStorageElement( aStorName, nOpenMode ); } @@ -341,12 +305,6 @@ uno::Reference< embed::XStorage > SAL_CALL Storage::openStorageElement( // virtual uno::Reference< io::XStream > SAL_CALL Storage::cloneStreamElement( const OUString& aStreamName ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - packages::WrongPasswordException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->cloneStreamElement( aStreamName ); } @@ -356,13 +314,6 @@ uno::Reference< io::XStream > SAL_CALL Storage::cloneStreamElement( uno::Reference< io::XStream > SAL_CALL Storage::cloneEncryptedStreamElement( const OUString& aStreamName, const OUString& aPassword ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - packages::NoEncryptionException, - packages::WrongPasswordException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->cloneEncryptedStreamElement( aStreamName, aPassword ); @@ -372,11 +323,6 @@ uno::Reference< io::XStream > SAL_CALL Storage::cloneEncryptedStreamElement( // virtual void SAL_CALL Storage::copyLastCommitTo( const uno::Reference< embed::XStorage >& xTargetStorage ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception) { m_xWrappedStorage->copyLastCommitTo( xTargetStorage ); } @@ -386,11 +332,6 @@ void SAL_CALL Storage::copyLastCommitTo( void SAL_CALL Storage::copyStorageElementLastCommitTo( const OUString& aStorName, const uno::Reference< embed::XStorage >& xTargetStorage ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception) { m_xWrappedStorage->copyStorageElementLastCommitTo( aStorName, xTargetStorage ); } @@ -399,10 +340,6 @@ void SAL_CALL Storage::copyStorageElementLastCommitTo( // virtual sal_Bool SAL_CALL Storage::isStreamElement( const OUString& aElementName ) - throw ( container::NoSuchElementException, - lang::IllegalArgumentException, - embed::InvalidStorageException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->isStreamElement( aElementName ); } @@ -411,10 +348,6 @@ sal_Bool SAL_CALL Storage::isStreamElement( // virtual sal_Bool SAL_CALL Storage::isStorageElement( const OUString& aElementName ) - throw ( container::NoSuchElementException, - lang::IllegalArgumentException, - embed::InvalidStorageException, - uno::RuntimeException, std::exception ) { return m_xWrappedStorage->isStorageElement( aElementName ); } @@ -422,12 +355,6 @@ sal_Bool SAL_CALL Storage::isStorageElement( // virtual void SAL_CALL Storage::removeElement( const OUString& aElementName ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - container::NoSuchElementException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { m_xWrappedStorage->removeElement( aElementName ); } @@ -436,13 +363,6 @@ void SAL_CALL Storage::removeElement( const OUString& aElementName ) // virtual void SAL_CALL Storage::renameElement( const OUString& aEleName, const OUString& aNewName ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - container::NoSuchElementException, - container::ElementExistException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { m_xWrappedStorage->renameElement( aEleName, aNewName ); } @@ -453,13 +373,6 @@ void SAL_CALL Storage::copyElementTo( const OUString& aElementName, const uno::Reference< embed::XStorage >& xDest, const OUString& aNewName ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - container::NoSuchElementException, - container::ElementExistException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { m_xWrappedStorage->copyElementTo( aElementName, xDest, aNewName ); } @@ -470,13 +383,6 @@ void SAL_CALL Storage::moveElementTo( const OUString& aElementName, const uno::Reference< embed::XStorage >& xDest, const OUString& rNewName ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - container::NoSuchElementException, - container::ElementExistException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException, std::exception ) { m_xWrappedStorage->moveElementTo( aElementName, xDest, rNewName ); } @@ -487,9 +393,6 @@ void SAL_CALL Storage::moveElementTo( // virtual void SAL_CALL Storage::commit() - throw ( io::IOException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { // Never commit a root storage (-> has no parent)! // Would lead in writing the whole document to disk. @@ -519,9 +422,6 @@ void SAL_CALL Storage::commit() // virtual void SAL_CALL Storage::revert() - throw ( io::IOException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception ) { uno::Reference< embed::XStorage > xParentStorage = getParentStorage(); if ( xParentStorage.is() ) @@ -614,7 +514,6 @@ OutputStream::~OutputStream() // virtual uno::Any SAL_CALL OutputStream::queryInterface( const uno::Type& aType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet = OutputStreamUNOBase::queryInterface( aType ); @@ -633,7 +532,6 @@ uno::Any SAL_CALL OutputStream::queryInterface( const uno::Type& aType ) // virtual uno::Sequence< uno::Type > SAL_CALL OutputStream::getTypes() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedTypeProv->getTypes(); } @@ -641,7 +539,6 @@ uno::Sequence< uno::Type > SAL_CALL OutputStream::getTypes() // virtual uno::Sequence< sal_Int8 > SAL_CALL OutputStream::getImplementationId() - throw ( uno::RuntimeException, std::exception ) { return css::uno::Sequence<sal_Int8>(); } @@ -653,10 +550,6 @@ uno::Sequence< sal_Int8 > SAL_CALL OutputStream::getImplementationId() // virtual void SAL_CALL OutputStream::writeBytes( const uno::Sequence< sal_Int8 >& aData ) - throw ( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { m_xWrappedStream->writeBytes( aData ); } @@ -665,10 +558,6 @@ OutputStream::writeBytes( const uno::Sequence< sal_Int8 >& aData ) // virtual void SAL_CALL OutputStream::flush() - throw ( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { m_xWrappedStream->flush(); } @@ -677,10 +566,6 @@ OutputStream::flush() // virtual void SAL_CALL OutputStream::closeOutput( ) - throw ( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { m_xWrappedStream->closeOutput(); @@ -696,7 +581,6 @@ OutputStream::closeOutput( ) // virtual void SAL_CALL OutputStream::dispose() - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->dispose(); @@ -710,7 +594,6 @@ OutputStream::dispose() void SAL_CALL OutputStream::addEventListener( const uno::Reference< lang::XEventListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->addEventListener( xListener ); } @@ -720,7 +603,6 @@ OutputStream::addEventListener( void SAL_CALL OutputStream::removeEventListener( const uno::Reference< lang::XEventListener >& aListener ) - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->removeEventListener( aListener ); } @@ -797,7 +679,6 @@ Stream::~Stream() // virtual uno::Any SAL_CALL Stream::queryInterface( const uno::Type& aType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet = StreamUNOBase::queryInterface( aType ); @@ -816,7 +697,6 @@ uno::Any SAL_CALL Stream::queryInterface( const uno::Type& aType ) // virtual uno::Sequence< uno::Type > SAL_CALL Stream::getTypes() - throw ( uno::RuntimeException, std::exception ) { return m_xWrappedTypeProv->getTypes(); } @@ -824,7 +704,6 @@ uno::Sequence< uno::Type > SAL_CALL Stream::getTypes() // virtual uno::Sequence< sal_Int8 > SAL_CALL Stream::getImplementationId() - throw ( uno::RuntimeException, std::exception ) { return css::uno::Sequence<sal_Int8>(); } @@ -835,7 +714,6 @@ uno::Sequence< sal_Int8 > SAL_CALL Stream::getImplementationId() // virtual uno::Reference< io::XInputStream > SAL_CALL Stream::getInputStream() - throw( uno::RuntimeException, std::exception ) { return uno::Reference< io::XInputStream >( this ); } @@ -843,7 +721,6 @@ uno::Reference< io::XInputStream > SAL_CALL Stream::getInputStream() // virtual uno::Reference< io::XOutputStream > SAL_CALL Stream::getOutputStream() - throw( uno::RuntimeException, std::exception ) { return uno::Reference< io::XOutputStream >( this ); } @@ -854,10 +731,6 @@ uno::Reference< io::XOutputStream > SAL_CALL Stream::getOutputStream() // virtual void SAL_CALL Stream::writeBytes( const uno::Sequence< sal_Int8 >& aData ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { if ( m_xWrappedOutputStream.is() ) { @@ -869,10 +742,6 @@ void SAL_CALL Stream::writeBytes( const uno::Sequence< sal_Int8 >& aData ) // virtual void SAL_CALL Stream::flush() - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { if ( m_xWrappedOutputStream.is() ) { @@ -884,9 +753,6 @@ void SAL_CALL Stream::flush() // virtual void SAL_CALL Stream::closeOutput() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { if ( m_xWrappedOutputStream.is() ) { @@ -905,8 +771,6 @@ void SAL_CALL Stream::closeOutput() // virtual void SAL_CALL Stream::truncate() - throw( io::IOException, - uno::RuntimeException, std::exception ) { if ( m_xWrappedTruncate.is() ) { @@ -922,10 +786,6 @@ void SAL_CALL Stream::truncate() // virtual sal_Int32 SAL_CALL Stream::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { return m_xWrappedInputStream->readBytes( aData, nBytesToRead ); } @@ -934,10 +794,6 @@ sal_Int32 SAL_CALL Stream::readBytes( uno::Sequence< sal_Int8 >& aData, // virtual sal_Int32 SAL_CALL Stream::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { return m_xWrappedInputStream->readSomeBytes( aData, nMaxBytesToRead ); } @@ -945,10 +801,6 @@ sal_Int32 SAL_CALL Stream::readSomeBytes( uno::Sequence< sal_Int8 >& aData, // virtual void SAL_CALL Stream::skipBytes( sal_Int32 nBytesToSkip ) - throw( io::NotConnectedException, - io::BufferSizeExceededException, - io::IOException, - uno::RuntimeException, std::exception ) { m_xWrappedInputStream->skipBytes( nBytesToSkip ); } @@ -956,9 +808,6 @@ void SAL_CALL Stream::skipBytes( sal_Int32 nBytesToSkip ) // virtual sal_Int32 SAL_CALL Stream::available() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { return m_xWrappedInputStream->available(); } @@ -966,9 +815,6 @@ sal_Int32 SAL_CALL Stream::available() // virtual void SAL_CALL Stream::closeInput() - throw( io::NotConnectedException, - io::IOException, - uno::RuntimeException, std::exception ) { m_xWrappedInputStream->closeInput(); } @@ -979,7 +825,6 @@ void SAL_CALL Stream::closeInput() // virtual void SAL_CALL Stream::dispose() - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->dispose(); @@ -992,7 +837,6 @@ void SAL_CALL Stream::dispose() // virtual void SAL_CALL Stream::addEventListener( const uno::Reference< lang::XEventListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->addEventListener( xListener ); } @@ -1001,7 +845,6 @@ void SAL_CALL Stream::addEventListener( // virtual void SAL_CALL Stream::removeEventListener( const uno::Reference< lang::XEventListener >& aListener ) - throw ( uno::RuntimeException, std::exception ) { m_xWrappedComponent->removeEventListener( aListener ); } @@ -1011,7 +854,6 @@ void SAL_CALL Stream::removeEventListener( void Stream::commitChanges() - throw( io::IOException ) { uno::Reference< embed::XTransactedObject > xParentTA( getParentStorage(), uno::UNO_QUERY ); diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx index 33f8302ba8d9..28994800424b 100644 --- a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx +++ b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx @@ -83,8 +83,7 @@ public: // XInterface virtual css::uno::Any SAL_CALL queryInterface( - const css::uno::Type& aType ) - throw ( css::uno::RuntimeException, std::exception ) override; + const css::uno::Type& aType ) override; virtual void SAL_CALL acquire() throw () override; virtual void SAL_CALL release() @@ -93,178 +92,79 @@ public: // XTypeProvider (implemnented by base, but needs to be overridden for // delegating to aggregate) virtual css::uno::Sequence< css::uno::Type > SAL_CALL - getTypes() - throw ( css::uno::RuntimeException, std::exception ) override; + getTypes() override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getImplementationId() - throw ( css::uno::RuntimeException, std::exception ) override; + getImplementationId() override; // XComponent ( one of XStorage bases ) virtual void SAL_CALL - dispose() - throw ( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL - addEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + addEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; // XNameAccess ( one of XStorage bases ) virtual css::uno::Any SAL_CALL - getByName( const OUString& aName ) - throw ( css::container::NoSuchElementException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + getByName( const OUString& aName ) override; virtual css::uno::Sequence< OUString > SAL_CALL - getElementNames() - throw ( css::uno::RuntimeException, std::exception ) override; + getElementNames() override; virtual sal_Bool SAL_CALL - hasByName( const OUString& aName ) - throw ( css::uno::RuntimeException, std::exception ) override; + hasByName( const OUString& aName ) override; // XElementAccess (base of XNameAccess) virtual css::uno::Type SAL_CALL - getElementType() - throw ( css::uno::RuntimeException, std::exception ) override; + getElementType() override; virtual sal_Bool SAL_CALL - hasElements() - throw ( css::uno::RuntimeException, std::exception ) override; + hasElements() override; // XStorage virtual void SAL_CALL - copyToStorage( const css::uno::Reference< css::embed::XStorage >& xDest ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + copyToStorage( const css::uno::Reference< css::embed::XStorage >& xDest ) override; virtual css::uno::Reference< css::io::XStream > SAL_CALL openStreamElement( const OUString& aStreamName, - sal_Int32 nOpenMode ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::packages::WrongPasswordException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + sal_Int32 nOpenMode ) override; virtual css::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStreamElement( const OUString& aStreamName, sal_Int32 nOpenMode, - const OUString& aPassword ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::packages::NoEncryptionException, - css::packages::WrongPasswordException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& aPassword ) override; virtual css::uno::Reference< css::embed::XStorage > SAL_CALL openStorageElement( const OUString& aStorName, - sal_Int32 nOpenMode ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + sal_Int32 nOpenMode ) override; virtual css::uno::Reference< css::io::XStream > SAL_CALL - cloneStreamElement( const OUString& aStreamName ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::packages::WrongPasswordException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + cloneStreamElement( const OUString& aStreamName ) override; virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStreamElement( const OUString& aStreamName, - const OUString& aPassword ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::packages::NoEncryptionException, - css::packages::WrongPasswordException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& aPassword ) override; virtual void SAL_CALL copyLastCommitTo( const css::uno::Reference< - css::embed::XStorage >& xTargetStorage ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + css::embed::XStorage >& xTargetStorage ) override; virtual void SAL_CALL copyStorageElementLastCommitTo( const OUString& aStorName, const css::uno::Reference< css::embed::XStorage > & - xTargetStorage ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + xTargetStorage ) override; virtual sal_Bool SAL_CALL - isStreamElement( const OUString& aElementName ) - throw ( css::container::NoSuchElementException, - css::lang::IllegalArgumentException, - css::embed::InvalidStorageException, - css::uno::RuntimeException, std::exception ) override; + isStreamElement( const OUString& aElementName ) override; virtual sal_Bool SAL_CALL - isStorageElement( const OUString& aElementName ) - throw ( css::container::NoSuchElementException, - css::lang::IllegalArgumentException, - css::embed::InvalidStorageException, - css::uno::RuntimeException, std::exception ) override; + isStorageElement( const OUString& aElementName ) override; virtual void SAL_CALL - removeElement( const OUString& aElementName ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::container::NoSuchElementException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + removeElement( const OUString& aElementName ) override; virtual void SAL_CALL renameElement( const OUString& aEleName, - const OUString& aNewName ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::container::NoSuchElementException, - css::container::ElementExistException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& aNewName ) override; virtual void SAL_CALL copyElementTo( const OUString& aElementName, const css::uno::Reference< css::embed::XStorage >& xDest, - const OUString& aNewName ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::container::NoSuchElementException, - css::container::ElementExistException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& aNewName ) override; virtual void SAL_CALL moveElementTo( const OUString& aElementName, const css::uno::Reference< css::embed::XStorage >& xDest, - const OUString& rNewName ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::container::NoSuchElementException, - css::container::ElementExistException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + const OUString& rNewName ) override; // XTransactedObject - virtual void SAL_CALL commit() - throw ( css::io::IOException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL revert() - throw ( css::io::IOException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL commit() override; + virtual void SAL_CALL revert() override; private: rtl::Reference< StorageElementFactory > m_xFactory; @@ -299,50 +199,32 @@ public: // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw ( css::uno::RuntimeException, std::exception ) override; + queryInterface( const css::uno::Type& aType ) override; // XTypeProvider (implemnented by base, but needs to be overridden for // delegating to aggregate) virtual css::uno::Sequence< css::uno::Type > SAL_CALL - getTypes() - throw ( css::uno::RuntimeException, std::exception ) override; + getTypes() override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getImplementationId() - throw ( css::uno::RuntimeException, std::exception ) override; + getImplementationId() 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; + writeBytes( const css::uno::Sequence< sal_Int8 >& aData ) override; virtual void SAL_CALL - flush( ) - throw ( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + flush( ) override; // Note: We need to intercept this one. virtual void SAL_CALL - closeOutput( ) - throw ( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeOutput( ) override; // XComponent // Note: We need to intercept this one. virtual void SAL_CALL - dispose() - throw ( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL - addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; private: css::uno::Reference< @@ -376,106 +258,66 @@ public: // XInterface virtual css::uno::Any SAL_CALL - queryInterface( const css::uno::Type& aType ) - throw ( css::uno::RuntimeException, std::exception ) override; + queryInterface( const css::uno::Type& aType ) override; // XTypeProvider (implemnented by base, but needs to be overridden for // delegating to aggregate) virtual css::uno::Sequence< css::uno::Type > SAL_CALL - getTypes() - throw ( css::uno::RuntimeException, std::exception ) override; + getTypes() override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL - getImplementationId() - throw ( css::uno::RuntimeException, std::exception ) override; + getImplementationId() override; // XStream virtual css::uno::Reference< css::io::XInputStream > SAL_CALL - getInputStream() - throw( css::uno::RuntimeException, std::exception ) override; + getInputStream() override; virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL - getOutputStream() - throw( css::uno::RuntimeException, std::exception ) override; + getOutputStream() 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; + writeBytes( const css::uno::Sequence< sal_Int8 >& aData ) override; virtual void SAL_CALL - flush() - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + flush() override; virtual void SAL_CALL - closeOutput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeOutput() override; // XTruncate virtual void SAL_CALL - truncate() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + truncate() override; // 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; + sal_Int32 nBytesToRead ) 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; + sal_Int32 nMaxBytesToRead ) 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; + skipBytes( sal_Int32 nBytesToSkip ) override; virtual sal_Int32 SAL_CALL - available() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + available() override; virtual void SAL_CALL - closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) override; + closeInput() override; // XComponent // Note: We need to intercept this one. virtual void SAL_CALL - dispose() - throw ( css::uno::RuntimeException, std::exception ) override; + dispose() override; virtual void SAL_CALL - addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL - removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) - throw ( css::uno::RuntimeException, std::exception ) override; + removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; private: /// @throws css::io::IOException - void commitChanges() - throw( css::io::IOException ); + void commitChanges(); css::uno::Reference< css::uno::XAggregation > m_xAggProxy; diff --git a/ucb/source/ucp/tdoc/tdoc_storage.cxx b/ucb/source/ucp/tdoc/tdoc_storage.cxx index 8bba2180a939..a8055241522b 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.cxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.cxx @@ -56,8 +56,6 @@ StorageElementFactory::~StorageElementFactory() uno::Reference< embed::XStorage > StorageElementFactory::createTemporaryStorage() - throw ( uno::Exception, - uno::RuntimeException ) { uno::Reference< embed::XStorage > xStorage; uno::Reference< lang::XSingleServiceFactory > xStorageFac; @@ -80,11 +78,6 @@ StorageElementFactory::createTemporaryStorage() uno::Reference< embed::XStorage > StorageElementFactory::createStorage( const OUString & rUri, StorageAccessMode eMode ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException ) { osl::MutexGuard aGuard( m_aMutex ); @@ -233,12 +226,6 @@ StorageElementFactory::createStorage( const OUString & rUri, uno::Reference< io::XInputStream > StorageElementFactory::createInputStream( const OUString & rUri, const OUString & rPassword ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - packages::WrongPasswordException, - uno::RuntimeException ) { osl::MutexGuard aGuard( m_aMutex ); @@ -263,12 +250,6 @@ uno::Reference< io::XOutputStream > StorageElementFactory::createOutputStream( const OUString & rUri, const OUString & rPassword, bool bTruncate ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - packages::WrongPasswordException, - uno::RuntimeException ) { osl::MutexGuard aGuard( m_aMutex ); @@ -308,12 +289,6 @@ uno::Reference< io::XStream > StorageElementFactory::createStream( const OUString & rUri, const OUString & rPassword, bool bTruncate ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - packages::WrongPasswordException, - uno::RuntimeException ) { osl::MutexGuard aGuard( m_aMutex ); @@ -358,11 +333,6 @@ void StorageElementFactory::releaseElement( Storage * pElement ) uno::Reference< embed::XStorage > StorageElementFactory::queryParentStorage( const OUString & rUri, StorageAccessMode eMode ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException ) { uno::Reference< embed::XStorage > xParentStorage; @@ -384,11 +354,6 @@ uno::Reference< embed::XStorage > StorageElementFactory::queryStorage( const uno::Reference< embed::XStorage > & xParentStorage, const OUString & rUri, StorageAccessMode eMode ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - uno::RuntimeException ) { uno::Reference< embed::XStorage > xStorage; @@ -529,12 +494,6 @@ StorageElementFactory::queryStream( const OUString & rPassword, StorageAccessMode eMode, bool bTruncate ) - throw ( embed::InvalidStorageException, - lang::IllegalArgumentException, - io::IOException, - embed::StorageWrappedTargetException, - packages::WrongPasswordException, - uno::RuntimeException ) { osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/tdoc/tdoc_storage.hxx b/ucb/source/ucp/tdoc/tdoc_storage.hxx index c47717a49623..15e315ee4d18 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.hxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.hxx @@ -51,9 +51,7 @@ namespace tdoc_ucp { /// @throws css::uno::Exception /// @throws css::uno::RuntimeException css::uno::Reference< css::embed::XStorage > - createTemporaryStorage() - throw ( css::uno::Exception, - css::uno::RuntimeException ); + createTemporaryStorage(); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -61,12 +59,7 @@ namespace tdoc_ucp { /// @throws css::embed::StorageWrappedTargetException /// @throws css::uno::RuntimeException css::uno::Reference< css::embed::XStorage > - createStorage( const OUString & rUri, StorageAccessMode eMode ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException ); + createStorage( const OUString & rUri, StorageAccessMode eMode ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -76,13 +69,7 @@ namespace tdoc_ucp { /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XInputStream > createInputStream( const OUString & rUri, - const OUString & rPassword ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::packages::WrongPasswordException, - css::uno::RuntimeException ); + const OUString & rPassword ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -93,13 +80,7 @@ namespace tdoc_ucp { css::uno::Reference< css::io::XOutputStream > createOutputStream( const OUString & rUri, const OUString & rPassword, - bool bTruncate ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::packages::WrongPasswordException, - css::uno::RuntimeException ); + bool bTruncate ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -110,13 +91,7 @@ namespace tdoc_ucp { css::uno::Reference< css::io::XStream > createStream( const OUString & rUri, const OUString & rPassword, - bool bTruncate ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::packages::WrongPasswordException, - css::uno::RuntimeException ); + bool bTruncate ); private: friend class Storage; @@ -130,12 +105,7 @@ namespace tdoc_ucp { /// @throws css::uno::RuntimeException css::uno::Reference< css::embed::XStorage > queryParentStorage( const OUString & rUri, - StorageAccessMode eMode ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException ); + StorageAccessMode eMode ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -146,12 +116,7 @@ namespace tdoc_ucp { queryStorage( const css::uno::Reference< css::embed::XStorage > & xParentStorage, const OUString & rUri, - StorageAccessMode eMode ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::uno::RuntimeException ); + StorageAccessMode eMode ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException @@ -165,13 +130,7 @@ namespace tdoc_ucp { const OUString & rPassword, const OUString & rUri, StorageAccessMode eMode, - bool bTruncate /* ignored for read-only streams */ ) - throw ( css::embed::InvalidStorageException, - css::lang::IllegalArgumentException, - css::io::IOException, - css::embed::StorageWrappedTargetException, - css::packages::WrongPasswordException, - css::uno::RuntimeException ); + bool bTruncate /* ignored for read-only streams */ ); struct ltstrbool { diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index 2ce02150afbb..c20173a6bde7 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -171,7 +171,6 @@ void DAVResourceAccess::OPTIONS( DAVOptions & rOptions, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ) { initialize(); @@ -212,7 +211,6 @@ void DAVResourceAccess::PROPFIND( const std::vector< OUString > & rPropertyNames, std::vector< DAVResource > & rResources, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -255,7 +253,6 @@ void DAVResourceAccess::PROPFIND( const Depth nDepth, std::vector< DAVResourceInfo > & rResInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -295,7 +292,6 @@ void DAVResourceAccess::PROPFIND( void DAVResourceAccess::PROPPATCH( const std::vector< ProppatchValue >& rValues, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( DAVException ) { initialize(); @@ -335,7 +331,6 @@ void DAVResourceAccess::HEAD( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( DAVException ) { initialize(); @@ -374,7 +369,6 @@ void DAVResourceAccess::HEAD( uno::Reference< io::XInputStream > DAVResourceAccess::GET( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -416,7 +410,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( void DAVResourceAccess::GET( uno::Reference< io::XOutputStream > & rStream, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -455,7 +448,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw (css::uno::RuntimeException, DAVException) { initialize(); @@ -501,7 +493,6 @@ void DAVResourceAccess::GET0( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -544,7 +535,6 @@ void DAVResourceAccess::GET( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -583,7 +573,6 @@ void DAVResourceAccess::GET( void DAVResourceAccess::abort() - throw( DAVException ) { initialize(); m_xSession->abort(); @@ -594,7 +583,6 @@ namespace { /// @throws DAVException void resetInputStream( const uno::Reference< io::XInputStream > & rStream ) - throw( DAVException ) { try { @@ -622,7 +610,6 @@ namespace { void DAVResourceAccess::PUT( const uno::Reference< io::XInputStream > & rStream, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw (css::uno::RuntimeException, DAVException) { initialize(); @@ -671,7 +658,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST( const OUString & rReferer, const uno::Reference< io::XInputStream > & rInputStream, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw (css::uno::RuntimeException, DAVException) { initialize(); @@ -735,7 +721,6 @@ void DAVResourceAccess::POST( const uno::Reference< io::XInputStream > & rInputStream, uno::Reference< io::XOutputStream > & rOutputStream, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw (css::uno::RuntimeException, DAVException) { initialize(); @@ -793,7 +778,6 @@ void DAVResourceAccess::POST( void DAVResourceAccess::MKCOL( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -833,7 +817,6 @@ void DAVResourceAccess::COPY( const OUString & rDestinationURI, bool bOverwrite, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -875,7 +858,6 @@ void DAVResourceAccess::MOVE( const OUString & rDestinationURI, bool bOverwrite, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -914,7 +896,6 @@ void DAVResourceAccess::MOVE( void DAVResourceAccess::DESTROY( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -953,7 +934,6 @@ void DAVResourceAccess::DESTROY( void DAVResourceAccess::LOCK( ucb::Lock & inLock, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ) { initialize(); @@ -1037,7 +1017,6 @@ sal_Int64 DAVResourceAccess::LOCK( void DAVResourceAccess::UNLOCK( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ) { initialize(); @@ -1073,7 +1052,6 @@ void DAVResourceAccess::UNLOCK( void DAVResourceAccess::setFlags( const uno::Sequence< beans::NamedValue >& rFlags ) - throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); m_aFlags = rFlags; @@ -1081,7 +1059,6 @@ void DAVResourceAccess::setFlags( const uno::Sequence< beans::NamedValue >& rFla void DAVResourceAccess::setURL( const OUString & rNewURL ) - throw( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); m_aURL = rNewURL; @@ -1091,7 +1068,6 @@ void DAVResourceAccess::setURL( const OUString & rNewURL ) // init dav session and path void DAVResourceAccess::initialize() - throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if ( m_aPath.isEmpty() ) @@ -1189,7 +1165,6 @@ void DAVResourceAccess::getUserRequestHeaders( // This function member implements the control on cyclical redirections bool DAVResourceAccess::detectRedirectCycle( const OUString& rRedirectURL ) - throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1236,7 +1211,6 @@ void DAVResourceAccess::resetUri() bool DAVResourceAccess::handleException( const DAVException & e, int errorCount ) - throw ( DAVException ) { switch ( e.getError() ) { diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx index 73e7d6d0b8ad..3667b9a15b22 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx @@ -73,12 +73,10 @@ public: DAVResourceAccess & operator=( const DAVResourceAccess & rOther ); /// @throws DAVException - void setFlags( const css::uno::Sequence< css::beans::NamedValue >& rFlags ) - throw ( DAVException ); + void setFlags( const css::uno::Sequence< css::beans::NamedValue >& rFlags ); /// @throws DAVException - void setURL( const OUString & rNewURL ) - throw ( DAVException ); + void setURL( const OUString & rNewURL ); void resetUri(); @@ -93,8 +91,7 @@ public: void OPTIONS( DAVOptions & rOptions, const css::uno::Reference< - css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + css::ucb::XCommandEnvironment > & xEnv ); // allprop & named /// @throws DAVException @@ -102,48 +99,41 @@ public: PROPFIND( const Depth nDepth, const std::vector< OUString > & rPropertyNames, std::vector< DAVResource > & rResources, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // propnames /// @throws DAVException void PROPFIND( const Depth nDepth, std::vector< DAVResourceInfo > & rResInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void PROPPATCH( const std::vector< ProppatchValue > & rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException void HEAD( const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException css::uno::Reference< css::io::XInputStream > - GET( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + GET( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void GET( css::uno::Reference< css::io::XOutputStream > & rStream, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::RuntimeException /// @throws DAVException css::uno::Reference< css::io::XInputStream > GET( const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw (css::uno::RuntimeException, DAVException); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // used as HEAD substitute when HEAD is not implemented on server /// @throws DAVException @@ -151,23 +141,20 @@ public: GET0( DAVRequestHeaders & rRequestHeaders, const std::vector< rtl::OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void GET( css::uno::Reference< css::io::XOutputStream > & rStream, const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::RuntimeException /// @throws DAVException void PUT( const css::uno::Reference< css::io::XInputStream > & rStream, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw (css::uno::RuntimeException, DAVException); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws css::uno::RuntimeException /// @throws DAVException @@ -175,8 +162,7 @@ public: POST( const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & rInputStream, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw (css::uno::RuntimeException, DAVException); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::RuntimeException /// @throws DAVException @@ -185,41 +171,35 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & rInputStream, css::uno::Reference< css::io::XOutputStream > & rOutputStream, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw (css::uno::RuntimeException, DAVException); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException void - MKCOL( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + MKCOL( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void COPY( const OUString & rSourcePath, const OUString & rDestinationURI, bool bOverwrite, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void MOVE( const OUString & rSourcePath, const OUString & rDestinationURI, bool bOverwrite, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void - DESTROY( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + DESTROY( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // set new lock. /// @throws DAVException void LOCK( css::ucb::Lock & inLock, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); #if 0 // currently not used, but please don't remove code // refresh existing lock. @@ -231,13 +211,11 @@ public: /// @throws DAVException void - UNLOCK( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + UNLOCK( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void - abort() - throw ( DAVException ); + abort(); // helper static void @@ -248,17 +226,14 @@ public: DAVRequestHeaders & rRequestHeaders ); /// @throws DAVException - bool handleException( const DAVException & e, int errorCount ) - throw ( DAVException ); + bool handleException( const DAVException & e, int errorCount ); private: const OUString & getRequestURI() const; /// @throws DAVException - bool detectRedirectCycle( const OUString& rRedirectURL ) - throw ( DAVException ); + bool detectRedirectCycle( const OUString& rRedirectURL ); /// @throws DAVException - void initialize() - throw ( DAVException ); + void initialize(); }; } // namespace webdav_ucp diff --git a/ucb/source/ucp/webdav-neon/DAVSession.hxx b/ucb/source/ucp/webdav-neon/DAVSession.hxx index 5516a26a215f..58839c80a47f 100644 --- a/ucb/source/ucp/webdav-neon/DAVSession.hxx +++ b/ucb/source/ucp/webdav-neon/DAVSession.hxx @@ -78,8 +78,7 @@ public: /// @throws std::exception virtual void OPTIONS( const OUString & inPath, DAVOptions& rOptions, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // allprop & named /// @throws std::exception @@ -87,49 +86,42 @@ public: const Depth inDepth, const std::vector< OUString > & inPropertyNames, std::vector< DAVResource > & ioResources, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // propnames /// @throws std::exception virtual void PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo > & ioResInfo, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream >& o, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // used as HEAD substitute when HEAD is not implemented on server /// @throws std::exception @@ -137,8 +129,7 @@ public: GET0( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void @@ -146,14 +137,12 @@ public: css::uno::Reference< css::io::XOutputStream >& o, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void PUT( const OUString & inPath, const css::uno::Reference< css::io::XInputStream >& s, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual css::uno::Reference< css::io::XInputStream > @@ -161,8 +150,7 @@ public: const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void POST( const OUString & inPath, @@ -170,48 +158,40 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, css::uno::Reference< css::io::XOutputStream > & oOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void MKCOL( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void COPY( const OUString & inSource, const OUString & inDestination, const DAVRequestEnvironment & rEnv, - bool inOverwrite ) - throw( std::exception ) = 0; + bool inOverwrite ) = 0; /// @throws std::exception virtual void MOVE( const OUString & inSource, const OUString & inDestination, const DAVRequestEnvironment & rEnv, - bool inOverwrite ) - throw( std::exception ) = 0; + bool inOverwrite ) = 0; /// @throws std::exception virtual void DESTROY( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // set new lock. /// @throws std::exception virtual void LOCK( const OUString & inPath, css::ucb::Lock & inLock, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception virtual void UNLOCK( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws std::exception - virtual void abort() - throw( std::exception ) = 0; + virtual void abort() = 0; protected: rtl::Reference< DAVSessionFactory > m_xFactory; diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx index db1ee134df0f..d189a66cba7e 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx @@ -43,7 +43,6 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( const OUString & inUri, const uno::Sequence< beans::NamedValue >& rFlags, const uno::Reference< uno::XComponentContext > & rxContext ) - throw( DAVException ) { m_xContext = rxContext; diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx index 07dee1521472..7fa3b095974e 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx @@ -65,8 +65,7 @@ public: rtl::Reference< DAVSession > createDAVSession( const OUString & inUri, const ::uno::Sequence< css::beans::NamedValue >& rFlags, - const ::uno::Reference< ::uno::XComponentContext >& rxContext ) - throw( DAVException ); + const ::uno::Reference< ::uno::XComponentContext >& rxContext ); const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() { return m_xContext; } private: diff --git a/ucb/source/ucp/webdav-neon/NeonInputStream.cxx b/ucb/source/ucp/webdav-neon/NeonInputStream.cxx index c6c65a906656..d5e80029933d 100644 --- a/ucb/source/ucp/webdav-neon/NeonInputStream.cxx +++ b/ucb/source/ucp/webdav-neon/NeonInputStream.cxx @@ -56,7 +56,6 @@ void NeonInputStream::AddToStream( const char * inBuf, sal_Int32 inLen ) } Any NeonInputStream::queryInterface( const Type &type ) - throw( RuntimeException, std::exception ) { Any aRet = ::cppu::queryInterface( type, static_cast< XInputStream * >( this ), @@ -67,10 +66,6 @@ Any NeonInputStream::queryInterface( const Type &type ) // "Reads" the specified number of bytes from the stream sal_Int32 SAL_CALL NeonInputStream::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 ) { // Work out how much we're actually going to write sal_Int32 theBytes2Read = nBytesToRead; @@ -93,10 +88,6 @@ sal_Int32 SAL_CALL NeonInputStream::readBytes( sal_Int32 SAL_CALL NeonInputStream::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 ) { // Warning: What should this be doing ? return readBytes( aData, nMaxBytesToRead ); @@ -104,10 +95,6 @@ sal_Int32 SAL_CALL NeonInputStream::readSomeBytes( // Moves the current stream position forward void SAL_CALL NeonInputStream::skipBytes( sal_Int32 nBytesToSkip ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) { mPos += nBytesToSkip; if ( mPos >= mLen ) @@ -116,24 +103,15 @@ void SAL_CALL NeonInputStream::skipBytes( sal_Int32 nBytesToSkip ) // Returns the number of unread bytes currently remaining on the stream sal_Int32 SAL_CALL NeonInputStream::available( ) - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) { return sal::static_int_cast<sal_Int32>(mLen - mPos); } void SAL_CALL NeonInputStream::closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) { } void SAL_CALL NeonInputStream::seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException, std::exception ) { if ( location < 0 ) throw css::lang::IllegalArgumentException(); @@ -145,15 +123,11 @@ void SAL_CALL NeonInputStream::seek( sal_Int64 location ) } sal_Int64 SAL_CALL NeonInputStream::getPosition() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) { return mPos; } sal_Int64 SAL_CALL NeonInputStream::getLength() - throw( css::io::IOException, - css::uno::RuntimeException, std::exception ) { return mLen; } diff --git a/ucb/source/ucp/webdav-neon/NeonInputStream.hxx b/ucb/source/ucp/webdav-neon/NeonInputStream.hxx index 154f0fbe9195..42e134637ec9 100644 --- a/ucb/source/ucp/webdav-neon/NeonInputStream.hxx +++ b/ucb/source/ucp/webdav-neon/NeonInputStream.hxx @@ -58,8 +58,7 @@ class NeonInputStream : public css::io::XInputStream, void AddToStream( const char * inBuf, sal_Int32 inLen ); // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & type ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & type ) override; virtual void SAL_CALL acquire() throw () override @@ -73,49 +72,24 @@ class NeonInputStream : public css::io::XInputStream, // 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; + sal_Int32 nBytesToRead ) 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; + 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; // 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; }; } // namespace webdav_ucp diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index d614a79d3930..89a0456cb4e8 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -581,7 +581,6 @@ NeonSession::NeonSession( const rtl::Reference< DAVSessionFactory > & rSessionFa const OUString& inUri, const uno::Sequence< beans::NamedValue >& rFlags, const ucbhelper::InternetProxyDecider & rProxyDecider ) - throw ( std::exception ) : DAVSession( rSessionFactory ) , m_nProxyPort( 0 ) , m_aFlags( rFlags ) @@ -610,7 +609,6 @@ NeonSession::~NeonSession( ) } void NeonSession::Init( const DAVRequestEnvironment & rEnv ) - throw (css::uno::RuntimeException, std::exception) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); m_aEnv = rEnv; @@ -618,7 +616,6 @@ void NeonSession::Init( const DAVRequestEnvironment & rEnv ) } void NeonSession::Init() - throw (css::uno::RuntimeException, std::exception) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -843,7 +840,6 @@ bool NeonSession::UsesProxy() void NeonSession::OPTIONS( const OUString & inPath, DAVOptions & rOptions, // contains the name+values of every header const DAVRequestEnvironment & rEnv ) - throw( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -964,7 +960,6 @@ void NeonSession::PROPFIND( const OUString & inPath, const std::vector< OUString > & inPropNames, std::vector< DAVResource > & ioResources, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -998,7 +993,6 @@ void NeonSession::PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo > & ioResInfo, const DAVRequestEnvironment & rEnv ) - throw( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "PROPFIND - relative URL: <" << inPath << "> Depth: " << inDepth ); @@ -1033,7 +1027,6 @@ void NeonSession::PROPFIND( const OUString & inPath, void NeonSession::PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, const DAVRequestEnvironment & rEnv ) - throw( std::exception ) { SAL_INFO( "ucb.ucp.webdav", "PROPPATCH - relative URL <" << inPath << ">" ); @@ -1164,7 +1157,6 @@ void NeonSession::HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "HEAD - relative URL <" << inPath << ">" ); @@ -1184,7 +1176,6 @@ void NeonSession::HEAD( const OUString & inPath, uno::Reference< io::XInputStream > NeonSession::GET( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "GET - relative URL <" << inPath << ">" ); @@ -1208,7 +1199,6 @@ NeonSession::GET( const OUString & inPath, void NeonSession::GET( const OUString & inPath, uno::Reference< io::XOutputStream > & ioOutputStream, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "GET - relative URL <" << inPath << ">" ); @@ -1231,7 +1221,6 @@ NeonSession::GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "GET - relative URL <" << inPath << ">" ); @@ -1259,7 +1248,6 @@ void NeonSession::GET0( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "GET - relative URL <" << inPath << ">" ); @@ -1285,7 +1273,6 @@ void NeonSession::GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "GET - relative URL <" << inPath << ">" ); @@ -1309,7 +1296,6 @@ void NeonSession::GET( const OUString & inPath, void NeonSession::PUT( const OUString & inPath, const uno::Reference< io::XInputStream > & inInputStream, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "PUT - relative URL <" << inPath << ">" ); @@ -1336,7 +1322,6 @@ NeonSession::POST( const OUString & inPath, const OUString & rReferer, const uno::Reference< io::XInputStream > & inInputStream, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "POST - relative URL <" << inPath << ">" ); @@ -1370,7 +1355,6 @@ void NeonSession::POST( const OUString & inPath, const uno::Reference< io::XInputStream > & inInputStream, uno::Reference< io::XOutputStream > & oOutputStream, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "POST - relative URL <" << inPath << ">" ); @@ -1397,7 +1381,6 @@ void NeonSession::POST( const OUString & inPath, void NeonSession::MKCOL( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "MKCOL - relative URL <" << inPath << ">" ); @@ -1415,7 +1398,6 @@ void NeonSession::COPY( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, bool inOverWrite ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "COPY - inSourceURL: "<<inSourceURL<<" inDestinationURL: "<<inDestinationURL); @@ -1442,7 +1424,6 @@ void NeonSession::MOVE( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, bool inOverWrite ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "MOVE - inSourceURL: "<<inSourceURL<<" inDestinationURL: "<<inDestinationURL); @@ -1465,7 +1446,6 @@ void NeonSession::MOVE( const OUString & inSourceURL, void NeonSession::DESTROY( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "DESTROY - relative URL <" << inPath << ">" ); @@ -1512,7 +1492,6 @@ namespace void NeonSession::LOCK( const OUString & inPath, ucb::Lock & rLock, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); SAL_INFO( "ucb.ucp.webdav", "LOCK (create) - relative URL: <" << inPath << ">" ); @@ -1651,7 +1630,6 @@ bool NeonSession::LOCK( NeonLock * pLock, void NeonSession::UNLOCK( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -1717,7 +1695,6 @@ bool NeonSession::UNLOCK( NeonLock * pLock ) } void NeonSession::abort() - throw ( std::exception ) { SAL_INFO( "ucb.ucp.webdav", "neon commands cannot be aborted" ); } @@ -1823,7 +1800,6 @@ bool NeonSession::removeExpiredLocktoken( const OUString & inURL, void NeonSession::HandleError( int nError, const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) { m_aEnv = DAVRequestEnvironment(); diff --git a/ucb/source/ucp/webdav-neon/NeonSession.hxx b/ucb/source/ucp/webdav-neon/NeonSession.hxx index 85e8172bed75..28b23678326c 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.hxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.hxx @@ -75,8 +75,7 @@ public: NeonSession( const rtl::Reference< DAVSessionFactory > & rSessionFactory, const OUString& inUri, const css::uno::Sequence< css::beans::NamedValue >& rFlags, - const ucbhelper::InternetProxyDecider & rProxyDecider ) - throw ( std::exception ); + const ucbhelper::InternetProxyDecider & rProxyDecider ); // DAVSession methods virtual bool CanUse( const OUString & inPath, @@ -90,8 +89,7 @@ public: virtual void OPTIONS( const OUString & inPath, DAVOptions& rOptions, // contains the name+values - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) SAL_OVERRIDE; + const DAVRequestEnvironment & rEnv ) SAL_OVERRIDE; // allprop & named virtual void @@ -99,76 +97,65 @@ public: const Depth inDepth, const std::vector< OUString > & inPropNames, std::vector< DAVResource > & ioResources, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; // propnames virtual void PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo >& ioResInfo, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream > & ioOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void GET0( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream > & ioOutputStream, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void PUT( const OUString & inPath, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual css::uno::Reference< css::io::XInputStream > POST( const OUString & inPath, const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void POST( const OUString & inPath, @@ -176,45 +163,37 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, css::uno::Reference< css::io::XOutputStream > & oOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void MKCOL( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void COPY( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, - bool inOverWrite ) - throw ( std::exception ) override; + bool inOverWrite ) override; virtual void MOVE( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, - bool inOverWrite ) - throw ( std::exception ) override; + bool inOverWrite ) override; virtual void DESTROY( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; // set new lock. virtual void LOCK( const OUString & inURL, css::ucb::Lock & inLock, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void UNLOCK( const OUString & inURL, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ) override; + const DAVRequestEnvironment & rEnv ) override; // helpers - virtual void abort() - throw ( std::exception ) override; + virtual void abort() override; const OUString & getHostName() const { return m_aHostName; } @@ -229,19 +208,16 @@ private: friend class NeonLockStore; /// @throws css::uno::RuntimeException - void Init() - throw (css::uno::RuntimeException, std::exception); + void Init(); /// @throws css::uno::RuntimeException - void Init( const DAVRequestEnvironment & rEnv ) - throw (css::uno::RuntimeException, std::exception); + void Init( const DAVRequestEnvironment & rEnv ); // ret: true => retry request. /// @throws std::exception void HandleError( int nError, const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( std::exception ); + const DAVRequestEnvironment & rEnv ); const ucbhelper::InternetProxyServer & getProxySettings() const; diff --git a/ucb/source/ucp/webdav-neon/NeonUri.cxx b/ucb/source/ucp/webdav-neon/NeonUri.cxx index 40a569cb196b..cf20b9fff2aa 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.cxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.cxx @@ -73,7 +73,6 @@ const ne_uri g_sUriDefaultsFTP = { const_cast<char *>("ftp"), } // namespace NeonUri::NeonUri( const ne_uri * inUri ) - throw ( DAVException ) { if ( inUri == nullptr ) throw DAVException( DAVException::DAV_INVALID_ARG ); @@ -90,7 +89,6 @@ NeonUri::NeonUri( const ne_uri * inUri ) } NeonUri::NeonUri( const OUString & inUri ) - throw ( DAVException ) { if ( inUri.isEmpty() ) throw DAVException( DAVException::DAV_INVALID_ARG ); diff --git a/ucb/source/ucp/webdav-neon/NeonUri.hxx b/ucb/source/ucp/webdav-neon/NeonUri.hxx index 66ad95bd9409..ef7b852b1f84 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.hxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.hxx @@ -56,9 +56,9 @@ class NeonUri public: /// @throws DAVException - explicit NeonUri( const OUString & inUri ) throw ( DAVException ); + explicit NeonUri( const OUString & inUri ); /// @throws DAVException - explicit NeonUri( const ne_uri * inUri ) throw ( DAVException ); + explicit NeonUri( const ne_uri * inUri ); ~NeonUri( ); bool operator== ( const NeonUri & rOther ) const; diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 96a737130006..3b332fa36ce7 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -221,7 +221,6 @@ Content::Content( ContentProvider* pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory ) - throw (ucb::ContentCreationException, css::uno::RuntimeException) : ContentImplHelper( rxContext, pProvider, Identifier ), m_eResourceType( UNKNOWN ), m_eResourceTypeForLocks( UNKNOWN ), @@ -255,7 +254,6 @@ Content::Content( const uno::Reference< ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory, bool isCollection ) - throw (ucb::ContentCreationException, css::uno::RuntimeException) : ContentImplHelper( rxContext, pProvider, Identifier ), m_eResourceType( UNKNOWN ), m_eResourceTypeForLocks( UNKNOWN ), @@ -306,7 +304,6 @@ void SAL_CALL Content::release() // virtual uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { // Note: isFolder may require network activities! So call it only // if it is really necessary!!! @@ -353,7 +350,6 @@ XTYPEPROVIDER_COMMON_IMPL( Content ); // virtual uno::Sequence< uno::Type > SAL_CALL Content::getTypes() - throw( uno::RuntimeException, std::exception ) { bool bFolder = false; try @@ -446,7 +442,6 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() // virtual OUString SAL_CALL Content::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.comp.ucb.WebDAVContent" ); } @@ -454,7 +449,6 @@ OUString SAL_CALL Content::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence<OUString> aSNS { WEBDAV_CONTENT_SERVICE_NAME }; return aSNS; @@ -466,7 +460,6 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() // virtual OUString SAL_CALL Content::getContentType() - throw( uno::RuntimeException, std::exception ) { bool bFolder = false; try @@ -497,9 +490,6 @@ uno::Any SAL_CALL Content::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException, std::exception ) { SAL_INFO( "ucb.ucp.webdav", "Content::execute: start: command: " << aCommand.Name << ", env: " << @@ -843,7 +833,6 @@ uno::Any SAL_CALL Content::execute( // virtual void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException, std::exception ) { try { @@ -870,11 +859,6 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) void Content::addProperty( const ucb::PropertyCommandArgument& aCmdArg, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( beans::PropertyExistException, - beans::IllegalTypeException, - lang::IllegalArgumentException, - uno::RuntimeException, - std::exception ) { // if ( m_bTransient ) // @@@ ??? @@ -1012,10 +996,6 @@ void Content::addProperty( const ucb::PropertyCommandArgument& aCmdArg, void Content::removeProperty( const OUString& Name, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - uno::RuntimeException, - std::exception ) { // Try to remove property from server. @@ -1105,10 +1085,6 @@ void Content::removeProperty( const OUString& Name, void SAL_CALL Content::addProperty( const OUString& Name, sal_Int16 Attributes, const uno::Any& DefaultValue ) - throw( beans::PropertyExistException, - beans::IllegalTypeException, - lang::IllegalArgumentException, - uno::RuntimeException, std::exception ) { beans::Property aProperty; aProperty.Name = Name; @@ -1122,9 +1098,6 @@ void SAL_CALL Content::addProperty( const OUString& Name, // virtual void SAL_CALL Content::removeProperty( const OUString& Name ) - throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - uno::RuntimeException, std::exception ) { removeProperty( Name, uno::Reference< ucb::XCommandEnvironment >() ); @@ -1137,7 +1110,6 @@ void SAL_CALL Content::removeProperty( const OUString& Name ) // virtual uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1172,7 +1144,6 @@ Content::queryCreatableContentsInfo() // virtual uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException, std::exception ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1339,7 +1310,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Reference< sdbc::XRow > Content::getPropertyValues( const uno::Sequence< beans::Property >& rProperties, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception, std::exception ) { std::unique_ptr< ContentProperties > xProps; std::unique_ptr< ContentProperties > xCachedProps; @@ -1795,7 +1765,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Sequence< uno::Any > Content::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception, std::exception ) { uno::Reference< ucb::XContentIdentifier > xIdentifier; rtl::Reference< ContentProvider > xProvider; @@ -2199,7 +2168,6 @@ uno::Sequence< uno::Any > Content::setPropertyValues( uno::Any Content::open( const ucb::OpenCommandArgument3 & rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw (uno::Exception, std::exception) { uno::Any aRet; @@ -2395,7 +2363,6 @@ uno::Any Content::open( void Content::post( const ucb::PostCommandArgument2 & rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception, std::exception ) { uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY ); if ( xSink.is() ) @@ -2533,7 +2500,6 @@ void Content::insert( const uno::Reference< io::XInputStream > & xInputStream, bool bReplaceExisting, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, std::exception ) { bool bTransient, bCollection; OUString aEscapedTitle; @@ -2796,7 +2762,6 @@ void Content::insert( void Content::transfer( const ucb::TransferInfo & rArgs, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, std::exception ) { uno::Reference< ucb::XContentIdentifier > xIdentifier; uno::Reference< ucb::XContentProvider > xProvider; @@ -3045,7 +3010,6 @@ void Content::transfer( void Content::destroy( bool bDeletePhysical ) - throw( uno::Exception, std::exception ) { // @@@ take care about bDeletePhysical -> trashcan support uno::Reference< ucb::XContent > xThis = this; @@ -3269,7 +3233,6 @@ Content::ResourceType Content::resourceTypeForLocks( void Content::lock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, std::exception ) { // prepare aURL to be used in exception, see below OUString aURL; @@ -3417,7 +3380,6 @@ void Content::lock( void Content::unlock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, std::exception ) { try @@ -3560,7 +3522,6 @@ bool Content::exchangeIdentity( bool Content::isFolder( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception, std::exception ) { { osl::MutexGuard aGuard( m_aMutex ); @@ -3765,7 +3726,6 @@ void Content::cancelCommandExecution( const DAVException & e, const uno::Reference< ucb::XCommandEnvironment > & xEnv, bool bWrite /* = sal_False */ ) - throw ( uno::Exception, std::exception ) { ucbhelper::cancelCommandExecution( MapDAVException( e, bWrite ), xEnv ); // Unreachable @@ -3806,7 +3766,6 @@ Content::ResourceType Content::getResourceType( const uno::Reference< ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, bool * networkAccessAllowed) - throw ( uno::Exception, std::exception ) { { osl::MutexGuard g(m_aMutex); @@ -3988,7 +3947,6 @@ Content::ResourceType Content::getResourceType( Content::ResourceType Content::getResourceType( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception, std::exception ) { std::unique_ptr< DAVResourceAccess > xResAccess; { @@ -4037,7 +3995,6 @@ void Content::getResourceOptions( DAVOptions& rDAVOptions, const std::unique_ptr< DAVResourceAccess > & rResAccess, bool * networkAccessAllowed ) - throw ( css::uno::Exception, std::exception ) { OUString aRedirURL; OUString aTargetURL = rResAccess->getURL(); diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.hxx b/ucb/source/ucp/webdav-neon/webdavcontent.hxx index 4510674a918c..571dec7b2fa6 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.hxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.hxx @@ -123,20 +123,17 @@ private: virtual OUString getParentURL() override; /// @throws css::uno::Exception - bool isFolder( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception, std::exception ); + bool isFolder( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception css::uno::Reference< css::sdbc::XRow > getPropertyValues( const css::uno::Sequence< css::beans::Property >& rProperties, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); typedef rtl::Reference< Content > ContentRef; typedef std::list< ContentRef > ContentRefList; @@ -150,56 +147,47 @@ private: /// @throws css::uno::Exception ResourceType - getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception, std::exception ); + getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception ResourceType getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, - bool * networkAccessAllowed = nullptr) - throw ( css::uno::Exception, std::exception ); + bool * networkAccessAllowed = nullptr); // Command "open" /// @throws css::uno::Exception css::uno::Any open( const css::ucb::OpenCommandArgument3 & rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw (css::uno::Exception, std::exception); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // Command "post" /// @throws css::uno::Exception void post( const css::ucb::PostCommandArgument2 & rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // Command "insert" /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream > & xInputStream, bool bReplaceExisting, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "transfer" /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo & rArgs, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "delete" /// @throws css::uno::Exception - void destroy( bool bDeletePhysical ) - throw( css::uno::Exception, std::exception ); + void destroy( bool bDeletePhysical ); // Command "lock" /// @throws css::uno::Exception - void lock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, std::exception ); + void lock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "unlock" /// @throws css::uno::Exception - void unlock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, std::exception ); + void unlock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); css::uno::Any MapDAVException( const DAVException & e, bool bWrite ); @@ -207,8 +195,7 @@ private: void cancelCommandExecution( const DAVException & e, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv, - bool bWrite = false ) - throw( css::uno::Exception, std::exception ); + bool bWrite = false ); static bool shouldAccessNetworkAfterException( const DAVException & e ); @@ -224,22 +211,13 @@ private: /// @throws css::lang::IllegalArgumentException /// @throws css::uno::RuntimeException void addProperty( const css::ucb::PropertyCommandArgument &aCmdArg, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::lang::IllegalArgumentException, - css::uno::RuntimeException, - std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); /// @throws css::beans::UnknownPropertyException /// @throws css::beans::NotRemoveableException /// @throws css::uno::RuntimeException void removeProperty( const OUString& Name, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException, - std::exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); public: /// @throws css::ucb::ContentCreationException @@ -247,73 +225,54 @@ public: Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider* pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - rtl::Reference< DAVSessionFactory > const & rSessionFactory ) - throw (css::ucb::ContentCreationException, css::uno::RuntimeException); + rtl::Reference< DAVSessionFactory > const & rSessionFactory ); /// @throws css::ucb::ContentCreationException /// @throws css::uno::RuntimeException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider* pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory, - bool isCollection ) - throw (css::ucb::ContentCreationException, css::uno::RuntimeException); + bool isCollection ); virtual ~Content() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException, std::exception ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException, std::exception ) override; + getSupportedServiceNames() override; // XContent virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException, std::exception ) override; + getContentType() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException, std::exception ) override; + abort( sal_Int32 CommandId ) override; // XPropertyContainer virtual void SAL_CALL addProperty( const OUString& Name, sal_Int16 Attributes, - const css::uno::Any& DefaultValue ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::lang::IllegalArgumentException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Any& DefaultValue ) override; virtual void SAL_CALL - removeProperty( const OUString& Name ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException, std::exception ) override; + removeProperty( const OUString& Name ) override; // Additional interfaces @@ -321,11 +280,9 @@ public: // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException, std::exception ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException, std::exception ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // Non-interface methods. @@ -346,8 +303,7 @@ public: void getResourceOptions( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, DAVOptions& rDAVOptions, const std::unique_ptr< DAVResourceAccess > & rResAccess, - bool * networkAccessAllowed = nullptr) - throw ( css::uno::Exception, std::exception ); + bool * networkAccessAllowed = nullptr); static bool isResourceAvailable( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx index 7eef0b111b35..92a290699cd3 100644 --- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx @@ -321,7 +321,6 @@ void DataSupplier::close() // virtual void DataSupplier::validate() - throw( ucb::ResultSetException ) { if ( m_pImpl->m_bThrowException ) throw ucb::ResultSetException(); diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.hxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.hxx index 141a6ee14a12..d717f41a88c0 100644 --- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.hxx +++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.hxx @@ -72,8 +72,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.cxx b/ucb/source/ucp/webdav-neon/webdavprovider.cxx index 4c68042591fb..f1f5530787d2 100644 --- a/ucb/source/ucp/webdav-neon/webdavprovider.cxx +++ b/ucb/source/ucp/webdav-neon/webdavprovider.cxx @@ -76,7 +76,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -102,7 +101,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -130,8 +128,6 @@ uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& Identifier ) - throw( ucb::IllegalIdentifierException, - uno::RuntimeException, std::exception ) { // Check URL scheme... diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.hxx b/ucb/source/ucp/webdav-neon/webdavprovider.hxx index cadd3f71e91c..071260c6e4c5 100644 --- a/ucb/source/ucp/webdav-neon/webdavprovider.hxx +++ b/ucb/source/ucp/webdav-neon/webdavprovider.hxx @@ -80,26 +80,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -110,9 +104,7 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException, std::exception ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // Non-interface methods. diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index 9fd3a179a16f..f1eb8bab0e74 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -161,7 +161,6 @@ void DAVResourceAccess::PROPFIND( const std::vector< OUString > & rPropertyNames, std::vector< DAVResource > & rResources, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -204,7 +203,6 @@ void DAVResourceAccess::PROPFIND( const Depth nDepth, std::vector< DAVResourceInfo > & rResInfo, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -244,7 +242,6 @@ void DAVResourceAccess::PROPFIND( void DAVResourceAccess::PROPPATCH( const std::vector< ProppatchValue >& rValues, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( DAVException ) { initialize(); @@ -284,7 +281,6 @@ void DAVResourceAccess::HEAD( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( DAVException ) { initialize(); @@ -323,7 +319,6 @@ void DAVResourceAccess::HEAD( uno::Reference< io::XInputStream > DAVResourceAccess::GET( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -365,7 +360,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( void DAVResourceAccess::GET( uno::Reference< io::XOutputStream > & rStream, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -405,7 +399,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -451,7 +444,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -496,7 +488,6 @@ void DAVResourceAccess::GET( const std::vector< OUString > & rHeaderNames, DAVResource & rResource, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -535,7 +526,6 @@ void DAVResourceAccess::GET( void DAVResourceAccess::abort() - throw( DAVException ) { // 17.11.09 (tkr): abort currently disabled caused by issue i106766 // initialize(); @@ -548,7 +538,6 @@ namespace { /// @throws DAVException void resetInputStream( const uno::Reference< io::XInputStream > & rStream ) - throw( DAVException ) { try { @@ -576,7 +565,6 @@ namespace { void DAVResourceAccess::PUT( const uno::Reference< io::XInputStream > & rStream, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -625,7 +613,6 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST( const OUString & rReferer, const uno::Reference< io::XInputStream > & rInputStream, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ) { initialize(); @@ -689,7 +676,6 @@ void DAVResourceAccess::POST( const uno::Reference< io::XInputStream > & rInputStream, uno::Reference< io::XOutputStream > & rOutputStream, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ) { initialize(); @@ -747,7 +733,6 @@ void DAVResourceAccess::POST( void DAVResourceAccess::MKCOL( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -787,7 +772,6 @@ void DAVResourceAccess::COPY( const OUString & rDestinationURI, bool bOverwrite, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -829,7 +813,6 @@ void DAVResourceAccess::MOVE( const OUString & rDestinationURI, bool bOverwrite, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -868,7 +851,6 @@ void DAVResourceAccess::MOVE( void DAVResourceAccess::DESTROY( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) { initialize(); @@ -907,7 +889,6 @@ void DAVResourceAccess::DESTROY( void DAVResourceAccess::LOCK( ucb::Lock & inLock, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ) { initialize(); @@ -991,7 +972,6 @@ sal_Int64 DAVResourceAccess::LOCK( void DAVResourceAccess::UNLOCK( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ) { initialize(); @@ -1027,7 +1007,6 @@ void DAVResourceAccess::UNLOCK( void DAVResourceAccess::setURL( const OUString & rNewURL ) - throw( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); m_aURL = rNewURL; @@ -1037,7 +1016,6 @@ void DAVResourceAccess::setURL( const OUString & rNewURL ) // init dav session and path void DAVResourceAccess::initialize() - throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if ( m_aPath.isEmpty() ) @@ -1120,7 +1098,6 @@ void DAVResourceAccess::getUserRequestHeaders( bool DAVResourceAccess::detectRedirectCycle( const OUString& rRedirectURL ) - throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1157,7 +1134,6 @@ void DAVResourceAccess::resetUri() bool DAVResourceAccess::handleException( DAVException & e, int errorCount ) - throw ( DAVException ) { switch ( e.getError() ) { diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.hxx b/ucb/source/ucp/webdav/DAVResourceAccess.hxx index 1327a0b40c68..44f7f393d0f7 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.hxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.hxx @@ -62,8 +62,7 @@ public: DAVResourceAccess & operator=( const DAVResourceAccess & rOther ); /// @throws DAVException - void setURL( const OUString & rNewURL ) - throw ( DAVException ); + void setURL( const OUString & rNewURL ); void resetUri(); @@ -81,77 +80,66 @@ public: PROPFIND( const Depth nDepth, const std::vector< OUString > & rPropertyNames, std::vector< DAVResource > & rResources, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // propnames /// @throws DAVException void PROPFIND( const Depth nDepth, std::vector< DAVResourceInfo > & rResInfo, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void PROPPATCH( const std::vector< ProppatchValue > & rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException void HEAD( const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException css::uno::Reference< css::io::XInputStream > - GET( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + GET( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void GET( css::uno::Reference< css::io::XOutputStream > & rStream, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException css::uno::Reference< css::io::XInputStream > GET( const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException css::uno::Reference< css::io::XInputStream > GET( DAVRequestHeaders & rRequestHeaders, const std::vector< rtl::OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void GET( css::uno::Reference< css::io::XOutputStream > & rStream, const std::vector< OUString > & rHeaderNames, // empty == 'all' DAVResource & rResource, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void PUT( const css::uno::Reference< css::io::XInputStream > & rStream, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException css::uno::Reference< css::io::XInputStream > POST( const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & rInputStream, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException void @@ -159,41 +147,35 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & rInputStream, css::uno::Reference< css::io::XOutputStream > & rOutputStream, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws DAVException void - MKCOL( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + MKCOL( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void COPY( const OUString & rSourcePath, const OUString & rDestinationURI, bool bOverwrite, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void MOVE( const OUString & rSourcePath, const OUString & rDestinationURI, bool bOverwrite, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void - DESTROY( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + DESTROY( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // set new lock. /// @throws DAVException void LOCK( css::ucb::Lock & inLock, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); #if 0 // currently not used, but please don't remove code // refresh existing lock. @@ -205,13 +187,11 @@ public: /// @throws DAVException void - UNLOCK( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw ( DAVException ); + UNLOCK( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); /// @throws DAVException void - static abort() - throw ( DAVException ); + static abort(); // helper static void @@ -224,14 +204,11 @@ public: private: const OUString & getRequestURI() const; /// @throws DAVException - bool detectRedirectCycle( const OUString& rRedirectURL ) - throw ( DAVException ); + bool detectRedirectCycle( const OUString& rRedirectURL ); /// @throws DAVException - bool handleException( DAVException & e, int errorCount ) - throw ( DAVException ); + bool handleException( DAVException & e, int errorCount ); /// @throws DAVException - void initialize() - throw ( DAVException ); + void initialize(); }; } // namespace http_dav_ucp diff --git a/ucb/source/ucp/webdav/DAVSession.hxx b/ucb/source/ucp/webdav/DAVSession.hxx index 4a28d40a8d27..1c6a8c0e01aa 100644 --- a/ucb/source/ucp/webdav/DAVSession.hxx +++ b/ucb/source/ucp/webdav/DAVSession.hxx @@ -79,49 +79,42 @@ public: const Depth inDepth, const std::vector< OUString > & inPropertyNames, std::vector< DAVResource > & ioResources, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // propnames /// @throws DAVException virtual void PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo > & ioResInfo, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream >& o, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void @@ -129,14 +122,12 @@ public: css::uno::Reference< css::io::XOutputStream >& o, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void PUT( const OUString & inPath, const css::uno::Reference< css::io::XInputStream >& s, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual css::uno::Reference< css::io::XInputStream > @@ -144,8 +135,7 @@ public: const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void POST( const OUString & inPath, @@ -153,55 +143,46 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, css::uno::Reference< css::io::XOutputStream > & oOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void MKCOL( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void COPY( const OUString & inSource, const OUString & inDestination, const DAVRequestEnvironment & rEnv, - bool inOverwrite = false ) - throw( DAVException ) = 0; + bool inOverwrite = false ) = 0; /// @throws DAVException virtual void MOVE( const OUString & inSource, const OUString & inDestination, const DAVRequestEnvironment & rEnv, - bool inOverwrite = false ) - throw( DAVException ) = 0; + bool inOverwrite = false ) = 0; /// @throws DAVException virtual void DESTROY( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // set new lock. /// @throws DAVException virtual void LOCK( const OUString & inPath, css::ucb::Lock & inLock, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; // refresh existing lock. /// @throws DAVException virtual sal_Int64 LOCK( const OUString & inPath, sal_Int64 nTimeout, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException virtual void UNLOCK( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) = 0; + const DAVRequestEnvironment & rEnv ) = 0; /// @throws DAVException - virtual void abort() - throw( DAVException ) = 0; + virtual void abort() = 0; protected: rtl::Reference< DAVSessionFactory > m_xFactory; diff --git a/ucb/source/ucp/webdav/DAVSessionFactory.cxx b/ucb/source/ucp/webdav/DAVSessionFactory.cxx index abb74ee7b7c8..c31d3cc0a9a7 100644 --- a/ucb/source/ucp/webdav/DAVSessionFactory.cxx +++ b/ucb/source/ucp/webdav/DAVSessionFactory.cxx @@ -32,7 +32,6 @@ DAVSessionFactory::~DAVSessionFactory() rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( const OUString & inUri, const uno::Reference< uno::XComponentContext > & rxContext ) - throw( DAVException ) { osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/webdav/DAVSessionFactory.hxx b/ucb/source/ucp/webdav/DAVSessionFactory.hxx index fb2b5338a1e0..29d504b59733 100644 --- a/ucb/source/ucp/webdav/DAVSessionFactory.hxx +++ b/ucb/source/ucp/webdav/DAVSessionFactory.hxx @@ -52,8 +52,7 @@ public: /// @throws DAVException rtl::Reference< DAVSession > createDAVSession( const OUString & inUri, - const css::uno::Reference< css::uno::XComponentContext >& rxContext ) - throw( DAVException ); + const css::uno::Reference< css::uno::XComponentContext >& rxContext ); private: typedef std::map< OUString, DAVSession * > Map; diff --git a/ucb/source/ucp/webdav/SerfInputStream.cxx b/ucb/source/ucp/webdav/SerfInputStream.cxx index 2575cb08227e..3ca05e55a383 100644 --- a/ucb/source/ucp/webdav/SerfInputStream.cxx +++ b/ucb/source/ucp/webdav/SerfInputStream.cxx @@ -59,7 +59,6 @@ void SerfInputStream::AddToStream( const char * inBuf, sal_Int32 inLen ) // queryInterface Any SerfInputStream::queryInterface( const Type &type ) - throw( RuntimeException ) { Any aRet = ::cppu::queryInterface( type, static_cast< XInputStream * >( this ), @@ -73,10 +72,6 @@ Any SerfInputStream::queryInterface( const Type &type ) sal_Int32 SAL_CALL SerfInputStream::readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException ) { // Work out how much we're actually going to write sal_Int32 theBytes2Read = nBytesToRead; @@ -102,10 +97,6 @@ sal_Int32 SAL_CALL SerfInputStream::readBytes( sal_Int32 SAL_CALL SerfInputStream::readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException ) { // Warning: What should this be doing ? return readBytes( aData, nMaxBytesToRead ); @@ -116,10 +107,6 @@ sal_Int32 SAL_CALL SerfInputStream::readSomeBytes( // Moves the current stream position forward void SAL_CALL SerfInputStream::skipBytes( sal_Int32 nBytesToSkip ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException ) { mPos += nBytesToSkip; if ( mPos >= mLen ) @@ -131,9 +118,6 @@ void SAL_CALL SerfInputStream::skipBytes( sal_Int32 nBytesToSkip ) // Returns the number of unread bytes currently remaining on the stream sal_Int32 SAL_CALL SerfInputStream::available( ) - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException ) { return sal::static_int_cast<sal_Int32>(mLen - mPos); } @@ -142,9 +126,6 @@ sal_Int32 SAL_CALL SerfInputStream::available( ) // closeInput void SAL_CALL SerfInputStream::closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException ) { } @@ -152,9 +133,6 @@ void SAL_CALL SerfInputStream::closeInput() // seek void SAL_CALL SerfInputStream::seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException ) { if ( location < 0 ) throw css::lang::IllegalArgumentException(); @@ -169,8 +147,6 @@ void SAL_CALL SerfInputStream::seek( sal_Int64 location ) // getPosition sal_Int64 SAL_CALL SerfInputStream::getPosition() - throw( css::io::IOException, - css::uno::RuntimeException ) { return mPos; } @@ -179,8 +155,6 @@ sal_Int64 SAL_CALL SerfInputStream::getPosition() // getLength sal_Int64 SAL_CALL SerfInputStream::getLength() - throw( css::io::IOException, - css::uno::RuntimeException ) { return mLen; } diff --git a/ucb/source/ucp/webdav/SerfInputStream.hxx b/ucb/source/ucp/webdav/SerfInputStream.hxx index fd893c813a7b..7d849e6c9bdb 100644 --- a/ucb/source/ucp/webdav/SerfInputStream.hxx +++ b/ucb/source/ucp/webdav/SerfInputStream.hxx @@ -53,8 +53,7 @@ class SerfInputStream : public css::io::XInputStream, void AddToStream( const char * inBuf, sal_Int32 inLen ); // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & type ) - throw( css::uno::RuntimeException ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & type ) override; virtual void SAL_CALL acquire() throw () override @@ -68,49 +67,24 @@ class SerfInputStream : public css::io::XInputStream, // 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 ) override; + sal_Int32 nBytesToRead ) 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 ) override; - - virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) - throw( css::io::NotConnectedException, - css::io::BufferSizeExceededException, - css::io::IOException, - css::uno::RuntimeException ) override; - - virtual sal_Int32 SAL_CALL available() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException ) override; - - virtual void SAL_CALL closeInput() - throw( css::io::NotConnectedException, - css::io::IOException, - css::uno::RuntimeException ) override; + 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; // XSeekable - virtual void SAL_CALL seek( sal_Int64 location ) - throw( css::lang::IllegalArgumentException, - css::io::IOException, - css::uno::RuntimeException ) override; - - virtual sal_Int64 SAL_CALL getPosition() - throw( css::io::IOException, - css::uno::RuntimeException ) override; - - virtual sal_Int64 SAL_CALL getLength() - throw( css::io::IOException, - css::uno::RuntimeException ) override; + virtual void SAL_CALL seek( sal_Int64 location ) override; + + virtual sal_Int64 SAL_CALL getPosition() override; + + virtual sal_Int64 SAL_CALL getLength() override; }; } // namespace http_dav_ucp diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index 40c8ffe9fb26..90becfc60cb6 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -58,7 +58,6 @@ SerfSession::SerfSession( const rtl::Reference< DAVSessionFactory > & rSessionFactory, const OUString& inUri, const ucbhelper::InternetProxyDecider & rProxyDecider ) - throw ( DAVException ) : DAVSession( rSessionFactory ) , m_aMutex() , m_aUri( inUri ) @@ -91,7 +90,6 @@ SerfSession::~SerfSession( ) void SerfSession::Init( const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); m_aEnv = rEnv; @@ -100,7 +98,6 @@ void SerfSession::Init( const DAVRequestEnvironment & rEnv ) void SerfSession::Init() - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -597,7 +594,6 @@ void SerfSession::PROPFIND( const OUString & inPath, const std::vector< OUString > & inPropNames, std::vector< DAVResource > & ioResources, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -627,7 +623,6 @@ void SerfSession::PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo > & ioResInfo, const DAVRequestEnvironment & rEnv ) - throw( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -655,7 +650,6 @@ void SerfSession::PROPFIND( const OUString & inPath, void SerfSession::PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, const DAVRequestEnvironment & rEnv ) - throw( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -676,7 +670,6 @@ void SerfSession::HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -703,7 +696,6 @@ void SerfSession::HEAD( const OUString & inPath, uno::Reference< io::XInputStream > SerfSession::GET( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -726,7 +718,6 @@ SerfSession::GET( const OUString & inPath, void SerfSession::GET( const OUString & inPath, uno::Reference< io::XOutputStream > & ioOutputStream, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -748,7 +739,6 @@ SerfSession::GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -777,7 +767,6 @@ void SerfSession::GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -801,7 +790,6 @@ void SerfSession::GET( const OUString & inPath, void SerfSession::PUT( const OUString & inPath, const uno::Reference< io::XInputStream > & inInputStream, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -828,7 +816,6 @@ SerfSession::POST( const OUString & inPath, const OUString & rReferer, const uno::Reference< io::XInputStream > & inInputStream, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -863,7 +850,6 @@ void SerfSession::POST( const OUString & inPath, const uno::Reference< io::XInputStream > & inInputStream, uno::Reference< io::XOutputStream > & oOutputStream, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -892,7 +878,6 @@ void SerfSession::POST( const OUString & inPath, void SerfSession::MKCOL( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -912,7 +897,6 @@ void SerfSession::COPY( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, bool inOverWrite ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -933,7 +917,6 @@ void SerfSession::MOVE( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, bool inOverWrite ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -952,7 +935,6 @@ void SerfSession::MOVE( const OUString & inSourceURL, void SerfSession::DESTROY( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -1002,7 +984,6 @@ namespace void SerfSession::LOCK( const OUString & inPath, ucb::Lock & rLock, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -1020,7 +1001,6 @@ void SerfSession::LOCK( const OUString & inPath, sal_Int64 SerfSession::LOCK( const OUString & /*inPath*/, sal_Int64 nTimeout, const DAVRequestEnvironment & /*rEnv*/ ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -1084,7 +1064,6 @@ bool SerfSession::LOCK( const OUString& rLock, void SerfSession::UNLOCK( const OUString & inPath, const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) { osl::Guard< osl::Mutex > theGuard( m_aMutex ); @@ -1128,7 +1107,6 @@ void SerfSession::UNLOCK( const OUString& rLock ) void SerfSession::abort() - throw ( DAVException ) { // 11.11.09 (tkr): The following code lines causing crashes if // closing a ongoing connection. It turned out that this existing @@ -1249,7 +1227,6 @@ bool SerfSession::removeExpiredLocktoken( const OUString & /*inURL*/, // Common Error Handler void SerfSession::HandleError( std::shared_ptr<SerfRequestProcessor> rReqProc ) - throw ( DAVException ) { m_aEnv = DAVRequestEnvironment(); diff --git a/ucb/source/ucp/webdav/SerfSession.hxx b/ucb/source/ucp/webdav/SerfSession.hxx index 9bcc112a4d59..3e162258117c 100644 --- a/ucb/source/ucp/webdav/SerfSession.hxx +++ b/ucb/source/ucp/webdav/SerfSession.hxx @@ -74,8 +74,7 @@ public: /// @throws DAVException SerfSession( const rtl::Reference< DAVSessionFactory > & rSessionFactory, const OUString& inUri, - const ucbhelper::InternetProxyDecider & rProxyDecider ) - throw ( DAVException ); + const ucbhelper::InternetProxyDecider & rProxyDecider ); // Serf library callbacks apr_status_t setupSerfConnection( apr_socket_t * inAprSocket, @@ -121,71 +120,61 @@ public: const Depth inDepth, const std::vector< OUString > & inPropNames, std::vector< DAVResource > & ioResources, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; // propnames virtual void PROPFIND( const OUString & inPath, const Depth inDepth, std::vector< DAVResourceInfo >& ioResInfo, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void PROPPATCH( const OUString & inPath, const std::vector< ProppatchValue > & inValues, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void HEAD( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; bool isHeadRequestInProgress(); virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream > & ioOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual css::uno::Reference< css::io::XInputStream > GET( const OUString & inPath, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void GET( const OUString & inPath, css::uno::Reference< css::io::XOutputStream > & ioOutputStream, const std::vector< OUString > & inHeaderNames, DAVResource & ioResource, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void PUT( const OUString & inPath, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual css::uno::Reference< css::io::XInputStream > POST( const OUString & inPath, const OUString & rContentType, const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void POST( const OUString & inPath, @@ -193,51 +182,42 @@ public: const OUString & rReferer, const css::uno::Reference< css::io::XInputStream > & inInputStream, css::uno::Reference< css::io::XOutputStream > & oOutputStream, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void MKCOL( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void COPY( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, - bool inOverWrite = false ) - throw ( DAVException ) override; + bool inOverWrite = false ) override; virtual void MOVE( const OUString & inSourceURL, const OUString & inDestinationURL, const DAVRequestEnvironment & rEnv, - bool inOverWrite = false ) - throw ( DAVException ) override; + bool inOverWrite = false ) override; virtual void DESTROY( const OUString & inPath, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; // set new lock. virtual void LOCK( const OUString & inURL, css::ucb::Lock & inLock, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; // refresh existing lock. virtual sal_Int64 LOCK( const OUString & inURL, sal_Int64 nTimeout, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; virtual void UNLOCK( const OUString & inURL, - const DAVRequestEnvironment & rEnv ) - throw ( DAVException ) override; + const DAVRequestEnvironment & rEnv ) override; // helpers - virtual void abort() - throw ( DAVException ) override; + virtual void abort() override; const OUString & getHostName() const { return m_aUri.GetHost(); } int getPort() const { return m_aUri.GetPort(); } @@ -248,16 +228,13 @@ private: friend class SerfLockStore; /// @throws DAVException - void Init() - throw ( DAVException ); + void Init(); /// @throws DAVException - void Init( const DAVRequestEnvironment & rEnv ) - throw ( DAVException ); + void Init( const DAVRequestEnvironment & rEnv ); /// @throws DAVException - void HandleError( std::shared_ptr<SerfRequestProcessor> rReqProc ) - throw ( DAVException ); + void HandleError( std::shared_ptr<SerfRequestProcessor> rReqProc ); const ucbhelper::InternetProxyServer & getProxySettings() const; diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx index 565ece80d364..7aec24f61bc0 100644 --- a/ucb/source/ucp/webdav/SerfUri.cxx +++ b/ucb/source/ucp/webdav/SerfUri.cxx @@ -31,7 +31,6 @@ using namespace http_dav_ucp; SerfUri::SerfUri( const apr_uri_t * inUri ) - throw ( DAVException ) : mAprUri( *inUri ) , mURI() , mScheme() @@ -54,7 +53,6 @@ SerfUri::SerfUri( const apr_uri_t * inUri ) } SerfUri::SerfUri( const OUString & inUri ) - throw ( DAVException ) : mAprUri() , mURI() , mScheme() diff --git a/ucb/source/ucp/webdav/SerfUri.hxx b/ucb/source/ucp/webdav/SerfUri.hxx index 31361582c253..f943cd489e0e 100644 --- a/ucb/source/ucp/webdav/SerfUri.hxx +++ b/ucb/source/ucp/webdav/SerfUri.hxx @@ -51,9 +51,9 @@ class SerfUri public: /// @throws DAVException - explicit SerfUri( const OUString & inUri ) throw ( DAVException ); + explicit SerfUri( const OUString & inUri ); /// @throws DAVException - explicit SerfUri( const apr_uri_t * inUri ) throw ( DAVException ); + explicit SerfUri( const apr_uri_t * inUri ); ~SerfUri( ); bool operator== ( const SerfUri & rOther ) const; diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 101aa1793f7f..5b193ea25bb4 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -197,7 +197,6 @@ Content::Content( ContentProvider* pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory ) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_eResourceType( UNKNOWN ), m_pProvider( pProvider ), @@ -230,7 +229,6 @@ Content::Content( const uno::Reference< ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory, bool isCollection ) - throw ( ucb::ContentCreationException ) : ContentImplHelper( rxContext, pProvider, Identifier ), m_eResourceType( UNKNOWN ), m_pProvider( pProvider ), @@ -282,7 +280,6 @@ void SAL_CALL Content::release() // virtual uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) - throw ( uno::RuntimeException, std::exception ) { // Note: isFolder may require network activities! So call it only // if it is really necessary!!! @@ -335,7 +332,6 @@ XTYPEPROVIDER_COMMON_IMPL( Content ); // virtual uno::Sequence< uno::Type > SAL_CALL Content::getTypes() - throw( uno::RuntimeException, std::exception ) { bool bFolder = false; try @@ -428,7 +424,6 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() // virtual OUString SAL_CALL Content::getImplementationName() - throw( uno::RuntimeException ) { return OUString( "com.sun.star.comp.ucb.WebDAVContent" ); } @@ -436,7 +431,6 @@ OUString SAL_CALL Content::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() - throw( uno::RuntimeException ) { uno::Sequence<OUString> aSNS { WEBDAV_CONTENT_SERVICE_NAME }; return aSNS; @@ -448,7 +442,6 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() // virtual OUString SAL_CALL Content::getContentType() - throw( uno::RuntimeException ) { bool bFolder = false; try @@ -479,9 +472,6 @@ uno::Any SAL_CALL Content::execute( const ucb::Command& aCommand, sal_Int32 /*CommandId*/, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception, - ucb::CommandAbortedException, - uno::RuntimeException ) { SAL_INFO("ucb.ucp.webdav", ">>>>> Content::execute: start: command: " << aCommand.Name << ", env: " << (Environment.is() ? "present" : "missing") ); @@ -804,7 +794,6 @@ uno::Any SAL_CALL Content::execute( // virtual void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) - throw( uno::RuntimeException ) { try { @@ -831,10 +820,6 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ ) void Content::addProperty( const css::ucb::PropertyCommandArgument &aCmdArg, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) -throw( beans::PropertyExistException, - beans::IllegalTypeException, - lang::IllegalArgumentException, - uno::RuntimeException ) { // if ( m_bTransient ) // @@@ ??? @@ -966,9 +951,6 @@ throw( beans::PropertyExistException, void Content::removeProperty( const rtl::OUString& Name, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) -throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - uno::RuntimeException ) { #if 0 // @@@ REMOVABLE at the moment not properly set in the PropSetInfo @@ -1074,10 +1056,6 @@ throw( beans::UnknownPropertyException, void SAL_CALL Content::addProperty( const rtl::OUString& Name, sal_Int16 Attributes, const uno::Any& DefaultValue ) - throw( beans::PropertyExistException, - beans::IllegalTypeException, - lang::IllegalArgumentException, - uno::RuntimeException ) { beans::Property aProperty; aProperty.Name = Name; @@ -1091,9 +1069,6 @@ void SAL_CALL Content::addProperty( const rtl::OUString& Name, // virtual void SAL_CALL Content::removeProperty( const rtl::OUString& Name ) - throw( beans::UnknownPropertyException, - beans::NotRemoveableException, - uno::RuntimeException ) { removeProperty( Name, uno::Reference< ucb::XCommandEnvironment >() ); @@ -1106,7 +1081,6 @@ void SAL_CALL Content::removeProperty( const rtl::OUString& Name ) // virtual uno::Sequence< ucb::ContentInfo > SAL_CALL Content::queryCreatableContentsInfo() - throw( uno::RuntimeException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1140,7 +1114,6 @@ Content::queryCreatableContentsInfo() // virtual uno::Reference< ucb::XContent > SAL_CALL Content::createNewContent( const ucb::ContentInfo& Info ) - throw( uno::RuntimeException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -1311,7 +1284,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Reference< sdbc::XRow > Content::getPropertyValues( const uno::Sequence< beans::Property >& rProperties, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception ) { std::unique_ptr< ContentProperties > xProps; std::unique_ptr< ContentProperties > xCachedProps; @@ -1651,7 +1623,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( uno::Sequence< uno::Any > Content::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception ) { uno::Reference< ucb::XContentIdentifier > xIdentifier; rtl::Reference< ContentProvider > xProvider; @@ -2061,7 +2032,6 @@ uno::Sequence< uno::Any > Content::setPropertyValues( uno::Any Content::open( const ucb::OpenCommandArgument2 & rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { uno::Any aRet; @@ -2226,7 +2196,6 @@ uno::Any Content::open( void Content::post( const ucb::PostCommandArgument2 & rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) { uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY ); if ( xSink.is() ) @@ -2362,7 +2331,6 @@ void Content::insert( const uno::Reference< io::XInputStream > & xInputStream, bool bReplaceExisting, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) { bool bTransient, bCollection; OUString aEscapedTitle; @@ -2605,7 +2573,6 @@ void Content::insert( void Content::transfer( const ucb::TransferInfo & rArgs, const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) { uno::Reference< uno::XComponentContext > xContext; uno::Reference< ucb::XContentIdentifier > xIdentifier; @@ -2844,7 +2811,6 @@ void Content::transfer( void Content::destroy( bool bDeletePhysical ) - throw( uno::Exception ) { // @@@ take care about bDeletePhysical -> trashcan support @@ -2898,7 +2864,6 @@ bool Content::supportsExclusiveWriteLock( void Content::lock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) { try { @@ -2938,7 +2903,6 @@ void Content::lock( void Content::unlock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) { try { @@ -3034,7 +2998,6 @@ bool Content::exchangeIdentity( bool Content::isFolder( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw( uno::Exception ) { { osl::MutexGuard aGuard( m_aMutex ); @@ -3258,7 +3221,6 @@ void Content::cancelCommandExecution( const DAVException & e, const uno::Reference< ucb::XCommandEnvironment > & xEnv, bool bWrite /* = false */ ) - throw ( uno::Exception ) { ucbhelper::cancelCommandExecution( MapDAVException( e, bWrite ), xEnv ); // Unreachable @@ -3299,7 +3261,6 @@ Content::ResourceType Content::getResourceType( const uno::Reference< ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, bool * networkAccessAllowed ) - throw ( uno::Exception ) { { osl::MutexGuard g(m_aMutex); @@ -3380,7 +3341,6 @@ Content::ResourceType Content::getResourceType( Content::ResourceType Content::getResourceType( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) - throw ( uno::Exception ) { std::unique_ptr< DAVResourceAccess > xResAccess; { diff --git a/ucb/source/ucp/webdav/webdavcontent.hxx b/ucb/source/ucp/webdav/webdavcontent.hxx index 57341fcab0ea..8eefba6f2f32 100644 --- a/ucb/source/ucp/webdav/webdavcontent.hxx +++ b/ucb/source/ucp/webdav/webdavcontent.hxx @@ -91,20 +91,17 @@ private: virtual OUString getParentURL() override; /// @throws css::uno::Exception - bool isFolder( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception ); + bool isFolder( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception css::uno::Reference< css::sdbc::XRow > getPropertyValues( const css::uno::Sequence< css::beans::Property >& rProperties, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, - const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); typedef rtl::Reference< Content > ContentRef; typedef std::list< ContentRef > ContentRefList; @@ -118,57 +115,48 @@ private: /// @throws css::uno::Exception ResourceType - getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ) - throw ( css::uno::Exception ); + getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv ); /// @throws css::uno::Exception ResourceType getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, - bool * networkAccessAllowed = nullptr ) - throw ( css::uno::Exception ); + bool * networkAccessAllowed = nullptr ); // Command "open" /// @throws css::uno::Exception css::uno::Any open( const css::ucb::OpenCommandArgument2 & rArg, const css::uno::Reference< - css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + css::ucb::XCommandEnvironment > & xEnv ); // Command "post" /// @throws css::uno::Exception void post( const css::ucb::PostCommandArgument2 & rArg, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ); // Command "insert" /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream > & xInputStream, bool bReplaceExisting, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "transfer" /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo & rArgs, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "delete" /// @throws css::uno::Exception - void destroy( bool bDeletePhysical ) - throw( css::uno::Exception ); + void destroy( bool bDeletePhysical ); // Command "lock" /// @throws css::uno::Exception - void lock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception ); + void lock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); // Command "unlock" /// @throws css::uno::Exception - void unlock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception ); + void unlock( const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); css::uno::Any MapDAVException( const DAVException & e, bool bWrite ); @@ -176,8 +164,7 @@ private: void cancelCommandExecution( const DAVException & e, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv, - bool bWrite = false ) - throw( css::uno::Exception ); + bool bWrite = false ); static bool shouldAccessNetworkAfterException( const DAVException & e ); @@ -190,91 +177,65 @@ private: /// @throws css::lang::IllegalArgumentException /// @throws css::uno::RuntimeException void addProperty( const css::ucb::PropertyCommandArgument &aCmdArg, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::lang::IllegalArgumentException, - css::uno::RuntimeException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); /// @throws css::beans::PropertyExistException /// @throws css::beans::NotRemoveableException /// @throws css::uno::RuntimeException void removeProperty( const rtl::OUString& Name, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException ); + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ); public: /// @throws css::ucb::ContentCreationException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider* pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, - rtl::Reference< DAVSessionFactory > const & rSessionFactory ) - throw ( css::ucb::ContentCreationException ); + rtl::Reference< DAVSessionFactory > const & rSessionFactory ); /// @throws css::ucb::ContentCreationException Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ContentProvider* pProvider, const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier, rtl::Reference< DAVSessionFactory > const & rSessionFactory, - bool isCollection ) - throw ( css::ucb::ContentCreationException ); + bool isCollection ); virtual ~Content() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; // XServiceInfo virtual OUString SAL_CALL - getImplementationName() - throw( css::uno::RuntimeException ) override; + getImplementationName() override; virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() - throw( css::uno::RuntimeException ) override; + getSupportedServiceNames() override; // XContent virtual OUString SAL_CALL - getContentType() - throw( css::uno::RuntimeException ) override; + getContentType() override; // XCommandProcessor virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand, sal_Int32 CommandId, - const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) - throw( css::uno::Exception, - css::ucb::CommandAbortedException, - css::uno::RuntimeException ) override; + const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override; virtual void SAL_CALL - abort( sal_Int32 CommandId ) - throw( css::uno::RuntimeException ) override; + abort( sal_Int32 CommandId ) override; // XPropertyContainer virtual void SAL_CALL addProperty( const OUString& Name, sal_Int16 Attributes, - const css::uno::Any& DefaultValue ) - throw( css::beans::PropertyExistException, - css::beans::IllegalTypeException, - css::lang::IllegalArgumentException, - css::uno::RuntimeException ) override; + const css::uno::Any& DefaultValue ) override; virtual void SAL_CALL - removeProperty( const OUString& Name ) - throw( css::beans::UnknownPropertyException, - css::beans::NotRemoveableException, - css::uno::RuntimeException ) override; + removeProperty( const OUString& Name ) override; // Additional interfaces @@ -282,11 +243,9 @@ public: // XContentCreator virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL - queryCreatableContentsInfo() - throw( css::uno::RuntimeException ) override; + queryCreatableContentsInfo() override; virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - createNewContent( const css::ucb::ContentInfo& Info ) - throw( css::uno::RuntimeException ) override; + createNewContent( const css::ucb::ContentInfo& Info ) override; // Non-interface methods. diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index 9765d8486d6b..4ff990a9995d 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -320,7 +320,6 @@ void DataSupplier::close() // virtual void DataSupplier::validate() - throw( ucb::ResultSetException ) { if ( m_pImpl->m_bThrowException ) throw ucb::ResultSetException(); diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.hxx b/ucb/source/ucp/webdav/webdavdatasupplier.hxx index 7c168c0e661d..9224f9259a72 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.hxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.hxx @@ -67,8 +67,7 @@ public: virtual void close() override; - virtual void validate() - throw( css::ucb::ResultSetException ) override; + virtual void validate() override; }; } diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx index 4a76fa8f7f73..4fc3d300bd75 100644 --- a/ucb/source/ucp/webdav/webdavprovider.cxx +++ b/ucb/source/ucp/webdav/webdavprovider.cxx @@ -61,7 +61,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -87,7 +86,6 @@ XSERVICEINFO_COMMOM_IMPL( ContentProvider, /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) - throw( css::uno::Exception ) { css::lang::XServiceInfo* pX = static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); @@ -115,8 +113,6 @@ uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& Identifier ) - throw( ucb::IllegalIdentifierException, - uno::RuntimeException ) { // Check URL scheme... diff --git a/ucb/source/ucp/webdav/webdavprovider.hxx b/ucb/source/ucp/webdav/webdavprovider.hxx index 2672b262383a..383ffc119f7f 100644 --- a/ucb/source/ucp/webdav/webdavprovider.hxx +++ b/ucb/source/ucp/webdav/webdavprovider.hxx @@ -73,26 +73,20 @@ public: virtual ~ContentProvider() override; // XInterface - virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL release() throw() override; // XTypeProvider - virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw( css::uno::RuntimeException, std::exception ) override; - virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; + virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() 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; static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); @@ -103,9 +97,7 @@ public: // XContentProvider virtual css::uno::Reference< css::ucb::XContent > SAL_CALL - queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) - throw( css::ucb::IllegalIdentifierException, - css::uno::RuntimeException ) override; + queryContent( const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier ) override; // Non-interface methods. diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx index d7f30dd78479..f90aaed2593b 100644 --- a/ucb/source/ucp/webdav/webdavresponseparser.cxx +++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx @@ -355,14 +355,14 @@ namespace virtual ~WebDAVResponseParser() override; // Methods XDocumentHandler - virtual void SAL_CALL startDocument( ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL endDocument( ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL endElement( const OUString& aName ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL characters( const OUString& aChars ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) throw (xml::sax::SAXException, uno::RuntimeException) override; - virtual void SAL_CALL setDocumentLocator( const uno::Reference< xml::sax::XLocator >& xLocator ) throw (xml::sax::SAXException, uno::RuntimeException) override; + virtual void SAL_CALL startDocument( ) override; + virtual void SAL_CALL endDocument( ) override; + virtual void SAL_CALL startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs ) override; + virtual void SAL_CALL endElement( const OUString& aName ) override; + virtual void SAL_CALL characters( const OUString& aChars ) override; + virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) override; + virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) override; + virtual void SAL_CALL setDocumentLocator( const uno::Reference< xml::sax::XLocator >& xLocator ) override; const std::vector< ucb::Lock >& getResult_Lock() const { return maResult_Lock; } const std::vector< http_dav_ucp::DAVResource >& getResult_PropFind() const { return maResult_PropFind; } @@ -398,17 +398,17 @@ namespace } } - void SAL_CALL WebDAVResponseParser::startDocument( ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::startDocument( ) { SAL_WARN_IF(mpContext, "ucb.ucp.webdav", "Parser start with existing content (!)"); } - void SAL_CALL WebDAVResponseParser::endDocument( ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::endDocument( ) { SAL_WARN_IF(mpContext, "ucb.ucp.webdav", "Parser end with existing content (!)"); } - void SAL_CALL WebDAVResponseParser::startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs ) { const sal_Int32 nLen(aName.getLength()); @@ -507,7 +507,7 @@ namespace } } - void SAL_CALL WebDAVResponseParser::endElement( const OUString& aName ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::endElement( const OUString& aName ) { const sal_Int32 nLen(aName.getLength()); SAL_WARN_IF(!mpContext, "ucb.ucp.webdav", "Parser EndElement without content (!)"); @@ -790,7 +790,7 @@ namespace } } - void SAL_CALL WebDAVResponseParser::characters( const OUString& aChars ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::characters( const OUString& aChars ) { // collect whitespace over evtl. several calls in mpContext SAL_WARN_IF(!mpContext, "ucb.ucp.webdav", "Parser characters without content (!)"); @@ -817,15 +817,15 @@ namespace } } - void SAL_CALL WebDAVResponseParser::ignorableWhitespace( const OUString& /*aWhitespaces*/ ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::ignorableWhitespace( const OUString& /*aWhitespaces*/ ) { } - void SAL_CALL WebDAVResponseParser::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ ) { } - void SAL_CALL WebDAVResponseParser::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ ) throw (xml::sax::SAXException, uno::RuntimeException) + void SAL_CALL WebDAVResponseParser::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ ) { } } // end of anonymous namespace |