summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-31 15:10:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-02 12:14:50 +0100
commit316a5574ed28317219b557a0ebbcae73bf168d76 (patch)
tree3588ed2ccc89f6239b1b48de942de0636cd5ea85 /desktop
parent3284daa3ab56502ab5ec3e9cf2c02ae17e5e5d6c (diff)
coverity#706501 Uncaught exception
Change-Id: Ic5d95b87428284113f543427b417453dd361b354
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx5
-rw-r--r--desktop/source/deployment/registry/inc/dp_backend.h4
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx7
3 files changed, 8 insertions, 8 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 1b3cd1e5c4dc..cdf0c1d28af4 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -562,12 +562,12 @@ Reference<deployment::XPackageTypeInfo> Package::getPackageType()
return m_xPackageType;
}
-
void Package::exportTo(
OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<XCommandEnvironment> const & xCmdEnv )
throw (deployment::ExtensionRemovedException,
- CommandFailedException, CommandAbortedException, RuntimeException, std::exception)
+ CommandFailedException, CommandAbortedException, ContentCreationException,
+ RuntimeException, std::exception)
{
if (m_bRemoved)
throw deployment::ExtensionRemovedException();
@@ -580,7 +580,6 @@ void Package::exportTo(
throw RuntimeException( "UCB transferContent() failed!", 0 );
}
-
void Package::fireModified()
{
::cppu::OInterfaceContainerHelper * container = rBHelper.getContainer(
diff --git a/desktop/source/deployment/registry/inc/dp_backend.h b/desktop/source/deployment/registry/inc/dp_backend.h
index 24a55fdd1f16..c1e2df91f157 100644
--- a/desktop/source/deployment/registry/inc/dp_backend.h
+++ b/desktop/source/deployment/registry/inc/dp_backend.h
@@ -249,8 +249,8 @@ public:
sal_Int32 nameClashAction,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::ExtensionRemovedException,
- css::ucb::CommandFailedException,
- css::ucb::CommandAbortedException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ css::ucb::CommandFailedException, css::ucb::CommandAbortedException,
+ css::ucb::ContentCreationException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getRepositoryName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL()
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index b8501b7c3d5b..c9646b4d231c 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -193,6 +193,7 @@ class BackendImpl : public ImplBaseT
throw (deployment::ExtensionRemovedException,
ucb::CommandFailedException,
ucb::CommandAbortedException,
+ ucb::ContentCreationException,
RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::sal_Int32 SAL_CALL checkPrerequisites(
@@ -1030,9 +1031,9 @@ OUString BackendImpl::PackageImpl::getLicenseText()
void BackendImpl::PackageImpl::exportTo(
OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<ucb::XCommandEnvironment> const & xCmdEnv )
- throw (ucb::CommandFailedException,
- deployment::ExtensionRemovedException,
- ucb::CommandAbortedException, RuntimeException, std::exception)
+ throw (deployment::ExtensionRemovedException,
+ ucb::CommandFailedException, ucb::CommandAbortedException,
+ ucb::ContentCreationException, RuntimeException, std::exception)
{
if (m_bRemoved)
throw deployment::ExtensionRemovedException();