diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 09:31:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 10:48:40 +0100 |
commit | d09279cd0aecb65027304a73e9fbaf141688dff6 (patch) | |
tree | a5777513aeddc67b755a550ef791a481f4451745 /ucb | |
parent | e77a2cb2f82e3f928501875cf981167b1576e069 (diff) |
coverity#707429 Uncaught exception
Change-Id: I745028d5bfbb6b1152abf6e0fe4dbc9c697b5d4b
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.hxx | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 6a2676b62a77..cbfb5514e4e6 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -2876,7 +2876,8 @@ static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream( uno::Reference< io::XOutputStream > Content::getTruncatedOutputStream( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) throw ( ucb::CommandFailedException, - task::DocumentPasswordRequest ) + task::DocumentPasswordRequest, + css::uno::RuntimeException ) { OSL_ENSURE( m_aProps.getType() == STREAM, "Content::getTruncatedOutputStream - content is no stream!" ); diff --git a/ucb/source/ucp/tdoc/tdoc_content.hxx b/ucb/source/ucp/tdoc/tdoc_content.hxx index 8b5c5b74f70f..a173d246adc3 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.hxx +++ b/ucb/source/ucp/tdoc/tdoc_content.hxx @@ -230,8 +230,9 @@ private: getTruncatedOutputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment > & xEnv ) - throw ( ::com::sun::star::ucb::CommandFailedException, - ::com::sun::star::task::DocumentPasswordRequest ); + throw ( css::ucb::CommandFailedException, + css::task::DocumentPasswordRequest, + css::uno::RuntimeException ); ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > queryChildContent( const OUString & rRelativeChildUri ); |