diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-01-29 11:57:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-01 12:17:56 +0000 |
commit | 4739b31dafc5154a2c7d6b3f0ee90686863656f0 (patch) | |
tree | 0437d82f929131f3c900b5feb74cee4b1595499b /ucb/source/ucp/ext | |
parent | 385c207e3a0b2d946ff29a9003b36f81a8946c55 (diff) |
cancelCommandExecution - no need to pass exception by Any
all the call sites are passing an uno::Exception subtype
Change-Id: I6de1f00810e063e75ef620314561d7e2d6445ada
Reviewed-on: https://gerrit.libreoffice.org/33657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/ext')
-rw-r--r-- | ucb/source/ucp/ext/ucpext_content.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx index 950a953fed99..562d81030dcb 100644 --- a/ucb/source/ucp/ext/ucpext_content.cxx +++ b/ucb/source/ucp/ext/ucpext_content.cxx @@ -191,8 +191,8 @@ namespace ucb { namespace ucp { namespace ext Sequence< Property > Properties; if ( !( aCommand.Argument >>= Properties ) ) { - ::ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - OUString(), *this, -1 ) ), + ::ucbhelper::cancelCommandExecution( IllegalArgumentException( + OUString(), *this, -1 ), i_rEvironment ); // unreachable } @@ -204,16 +204,16 @@ namespace ucb { namespace ucp { namespace ext Sequence< PropertyValue > aProperties; if ( !( aCommand.Argument >>= aProperties ) ) { - ::ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - OUString(), *this, -1 ) ), + ::ucbhelper::cancelCommandExecution( IllegalArgumentException( + OUString(), *this, -1 ), i_rEvironment ); // unreachable } if ( !aProperties.getLength() ) { - ::ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - OUString(), *this, -1 ) ), + ::ucbhelper::cancelCommandExecution( IllegalArgumentException( + OUString(), *this, -1 ), i_rEvironment ); // unreachable } @@ -235,8 +235,8 @@ namespace ucb { namespace ucp { namespace ext OpenCommandArgument2 aOpenCommand; if ( !( aCommand.Argument >>= aOpenCommand ) ) { - ::ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - OUString(), *this, -1 ) ), + ::ucbhelper::cancelCommandExecution( IllegalArgumentException( + OUString(), *this, -1 ), i_rEvironment ); // unreachable } @@ -263,8 +263,8 @@ namespace ucb { namespace ucp { namespace ext else { - ::ucbhelper::cancelCommandExecution( makeAny( UnsupportedCommandException( - OUString(), *this ) ), + ::ucbhelper::cancelCommandExecution( UnsupportedCommandException( + OUString(), *this ), i_rEvironment ); // unreachable } |