diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 14:30:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 08:29:41 +0100 |
commit | c80be30203b842c7b6d3145200b120cefb452cb8 (patch) | |
tree | e9b519886eb1282e33279523b5ac7112d18e65e7 /basic/source/inc/namecont.hxx | |
parent | 39d5ba2fda01ffe56c8bcc0c5dbbb2b7d1bdf0fe (diff) |
coverity#706241 Uncaught exception
we've already checked to see if the element exists, so
we know that its not there.
Change-Id: I538c0d48a883d478e4c748d222b21958d083c049
Diffstat (limited to 'basic/source/inc/namecont.hxx')
-rw-r--r-- | basic/source/inc/namecont.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index 6355549bd162..bcbd245dc0ec 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -96,6 +96,17 @@ public: void setEventSource( ::com::sun::star::uno::XInterface* pxEventSource ) { mpxEventSource = pxEventSource; } + void insertCheck(const OUString& aName, const css::uno::Any& aElement) + throw (css::lang::IllegalArgumentException, + css::container::ElementExistException, + css::lang::WrappedTargetException, + css::uno::RuntimeException, std::exception); + + void insertNoCheck(const OUString& aName, const css::uno::Any& aElement) + throw (css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, + css::uno::RuntimeException, std::exception); + // Methods XElementAccess virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; |