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

coverity#706501 Uncaught exception

Change-Id: Ic5d95b87428284113f543427b417453dd361b354
üst 3284daa3
...@@ -562,12 +562,12 @@ Reference<deployment::XPackageTypeInfo> Package::getPackageType() ...@@ -562,12 +562,12 @@ Reference<deployment::XPackageTypeInfo> Package::getPackageType()
return m_xPackageType; return m_xPackageType;
} }
void Package::exportTo( void Package::exportTo(
OUString const & destFolderURL, OUString const & newTitle, OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<XCommandEnvironment> const & xCmdEnv ) sal_Int32 nameClashAction, Reference<XCommandEnvironment> const & xCmdEnv )
throw (deployment::ExtensionRemovedException, throw (deployment::ExtensionRemovedException,
CommandFailedException, CommandAbortedException, RuntimeException, std::exception) CommandFailedException, CommandAbortedException, ContentCreationException,
RuntimeException, std::exception)
{ {
if (m_bRemoved) if (m_bRemoved)
throw deployment::ExtensionRemovedException(); throw deployment::ExtensionRemovedException();
...@@ -580,7 +580,6 @@ void Package::exportTo( ...@@ -580,7 +580,6 @@ void Package::exportTo(
throw RuntimeException( "UCB transferContent() failed!", 0 ); throw RuntimeException( "UCB transferContent() failed!", 0 );
} }
void Package::fireModified() void Package::fireModified()
{ {
::cppu::OInterfaceContainerHelper * container = rBHelper.getContainer( ::cppu::OInterfaceContainerHelper * container = rBHelper.getContainer(
......
...@@ -249,8 +249,8 @@ public: ...@@ -249,8 +249,8 @@ public:
sal_Int32 nameClashAction, sal_Int32 nameClashAction,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv ) css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::ExtensionRemovedException, throw (css::deployment::ExtensionRemovedException,
css::ucb::CommandFailedException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException,
css::ucb::CommandAbortedException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::ucb::ContentCreationException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getRepositoryName() virtual OUString SAL_CALL getRepositoryName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL() virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL()
......
...@@ -193,6 +193,7 @@ class BackendImpl : public ImplBaseT ...@@ -193,6 +193,7 @@ class BackendImpl : public ImplBaseT
throw (deployment::ExtensionRemovedException, throw (deployment::ExtensionRemovedException,
ucb::CommandFailedException, ucb::CommandFailedException,
ucb::CommandAbortedException, ucb::CommandAbortedException,
ucb::ContentCreationException,
RuntimeException, std::exception) SAL_OVERRIDE; RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::sal_Int32 SAL_CALL checkPrerequisites( virtual ::sal_Int32 SAL_CALL checkPrerequisites(
...@@ -1030,9 +1031,9 @@ OUString BackendImpl::PackageImpl::getLicenseText() ...@@ -1030,9 +1031,9 @@ OUString BackendImpl::PackageImpl::getLicenseText()
void BackendImpl::PackageImpl::exportTo( void BackendImpl::PackageImpl::exportTo(
OUString const & destFolderURL, OUString const & newTitle, OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<ucb::XCommandEnvironment> const & xCmdEnv ) sal_Int32 nameClashAction, Reference<ucb::XCommandEnvironment> const & xCmdEnv )
throw (ucb::CommandFailedException, throw (deployment::ExtensionRemovedException,
deployment::ExtensionRemovedException, ucb::CommandFailedException, ucb::CommandAbortedException,
ucb::CommandAbortedException, RuntimeException, std::exception) ucb::ContentCreationException, RuntimeException, std::exception)
{ {
if (m_bRemoved) if (m_bRemoved)
throw deployment::ExtensionRemovedException(); throw deployment::ExtensionRemovedException();
......
...@@ -315,7 +315,8 @@ interface XPackage ...@@ -315,7 +315,8 @@ interface XPackage
raises ( raises (
ExtensionRemovedException, ExtensionRemovedException,
com::sun::star::ucb::CommandFailedException, com::sun::star::ucb::CommandFailedException,
com::sun::star::ucb::CommandAbortedException); com::sun::star::ucb::CommandAbortedException,
com::sun::star::ucb::ContentCreationException);
/** returns an icon for a package. /** returns an icon for a package.
......
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