diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /lotuswordpro/source/filter/lwpfilter.cxx | |
parent | Fixup whitespace changes, remove commented code. (diff) | |
download | core-5e21a413c788f839a66d9e4c14e745ed18058db8.tar.gz core-5e21a413c788f839a66d9e4c14e745ed18058db8.zip |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'lotuswordpro/source/filter/lwpfilter.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfilter.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index 9a1ff67ddd04..50948172d75e 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -109,7 +109,7 @@ LWPFilterReader::~LWPFilterReader() } sal_Bool LWPFilterReader::filter( const Sequence< PropertyValue >& aDescriptor ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { OUString sURL; for( sal_Int32 i = 0; i < aDescriptor.getLength(); i++ ) @@ -126,7 +126,7 @@ sal_Bool LWPFilterReader::filter( const Sequence< PropertyValue >& aDescriptor ) return (ReadWordproFile(inputStream, m_DocumentHandler) == 0); } -void LWPFilterReader::cancel() throw (com::sun::star::uno::RuntimeException) +void LWPFilterReader::cancel() throw (com::sun::star::uno::RuntimeException, std::exception) { } @@ -163,35 +163,35 @@ LWPFilterImportFilter::~LWPFilterImportFilter() } sal_Bool LWPFilterImportFilter::filter( const Sequence< PropertyValue >& aDescriptor ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { sal_Bool ret = rFilter->filter( aDescriptor ); return ret; } -void LWPFilterImportFilter::cancel() throw (::com::sun::star::uno::RuntimeException) +void LWPFilterImportFilter::cancel() throw (::com::sun::star::uno::RuntimeException, std::exception) { rFilter->cancel(); } void LWPFilterImportFilter::setTargetDocument( const uno::Reference< XComponent >& xDoc ) - throw( IllegalArgumentException, RuntimeException ) + throw( IllegalArgumentException, RuntimeException, std::exception ) { rImporter->setTargetDocument( xDoc ); } -OUString LWPFilterImportFilter::getImplementationName() throw() +OUString LWPFilterImportFilter::getImplementationName() throw(std::exception) { return OUString( STR_IMPLEMENTATION_NAME ); } -sal_Bool LWPFilterImportFilter::supportsService( const OUString& ServiceName ) throw() +sal_Bool LWPFilterImportFilter::supportsService( const OUString& ServiceName ) throw(std::exception) { return cppu::supportsService(this, ServiceName); } -Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) throw() +Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) throw(std::exception) { Sequence< OUString > seq(1); seq[0] = STR_SERVICE_NAME; @@ -200,7 +200,7 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro OUString SAL_CALL LWPFilterImportFilter::detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor ) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { OUString ret; OUString aTypeName; // a name describing the type (from MediaDescriptor, usually from flat detection) |