Kaydet (Commit) d375986d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707084 Uncaught exception

Change-Id: I89459f7a77fcb5785cfb2e8288326fce65202d9c
üst d1c18edd
......@@ -22,7 +22,6 @@
#include <com/sun/star/resource/XStringResourcePersistence.idl>
module com { module sun { module star { module resource {
/**
......@@ -65,9 +64,13 @@ interface XStringResourceWithLocation: com::sun::star::resource::XStringResource
@throws com::sun::star::lang::IllegalArgumentException
if an empty string is passed as URL
@throws com::sun::star::lang::NoSupportException
if the location is readonly
*/
void setURL( [in] string URL )
raises( ::com::sun::star::lang::IllegalArgumentException );
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::NoSupportException );
};
......
......@@ -2864,7 +2864,9 @@ void StringResourceWithLocationImpl::storeAsURL( const OUString& URL )
}
void StringResourceWithLocationImpl::setURL( const OUString& URL )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception)
throw (css::lang::IllegalArgumentException,
css::lang::NoSupportException,
css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
implCheckReadOnly( "StringResourceWithLocationImpl::setURL(): Read only" );
......
......@@ -668,7 +668,8 @@ public:
virtual void SAL_CALL storeAsURL( const OUString& URL )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setURL( const OUString& URL )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
throw (css::lang::IllegalArgumentException, css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment