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 /ucbhelper/source/client/content.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'ucbhelper/source/client/content.cxx')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index ac1bd2d67092..e1ef0bb281bb 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -80,21 +80,21 @@ class EmptyInputStream : public ::cppu::WeakImplHelper1< XInputStream > public: virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 > & data, sal_Int32 nBytesToRead ) - throw (IOException, RuntimeException); + throw (IOException, RuntimeException, std::exception); virtual sal_Int32 SAL_CALL readSomeBytes( Sequence< sal_Int8 > & data, sal_Int32 nMaxBytesToRead ) - throw (IOException, RuntimeException); + throw (IOException, RuntimeException, std::exception); virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) - throw (IOException, RuntimeException); + throw (IOException, RuntimeException, std::exception); virtual sal_Int32 SAL_CALL available() - throw (IOException, RuntimeException); + throw (IOException, RuntimeException, std::exception); virtual void SAL_CALL closeInput() - throw (IOException, RuntimeException); + throw (IOException, RuntimeException, std::exception); }; sal_Int32 EmptyInputStream::readBytes( Sequence< sal_Int8 > & data, sal_Int32 ) - throw (IOException, RuntimeException) + throw (IOException, RuntimeException, std::exception) { data.realloc( 0 ); return 0; @@ -102,25 +102,25 @@ sal_Int32 EmptyInputStream::readBytes( sal_Int32 EmptyInputStream::readSomeBytes( Sequence< sal_Int8 > & data, sal_Int32 ) - throw (IOException, RuntimeException) + throw (IOException, RuntimeException, std::exception) { data.realloc( 0 ); return 0; } void EmptyInputStream::skipBytes( sal_Int32 ) - throw (IOException, RuntimeException) + throw (IOException, RuntimeException, std::exception) { } sal_Int32 EmptyInputStream::available() - throw (IOException, RuntimeException) + throw (IOException, RuntimeException, std::exception) { return 0; } void EmptyInputStream::closeInput() - throw (IOException, RuntimeException) + throw (IOException, RuntimeException, std::exception) { } @@ -147,11 +147,11 @@ public: // XContentEventListener virtual void SAL_CALL contentEvent( const ContentEvent& evt ) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); // XEventListener ( base of XContentEventListener ) virtual void SAL_CALL disposing( const EventObject& Source ) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); }; @@ -1330,7 +1330,7 @@ XINTERFACE_IMPL_2( ContentEventListener_Impl, // virtual void SAL_CALL ContentEventListener_Impl::contentEvent( const ContentEvent& evt ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if ( evt.Source == m_rContent.m_xContent ) { @@ -1358,7 +1358,7 @@ void SAL_CALL ContentEventListener_Impl::contentEvent( const ContentEvent& evt ) // virtual void SAL_CALL ContentEventListener_Impl::disposing( const EventObject& Source ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { m_rContent.disposing(Source); } |