summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 15:20:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 15:20:53 +0200
commit88dde756eb18d4b65283008b940aa432f6146e50 (patch)
tree20dee3f3861a22e802410675d35855734a7f9db2 /dbaccess
parent52885c7b82e6cfdd9072af2dc597edcb31192e89 (diff)
Revert "cancelCommandExecution - no need to pass exception by Any"
This reverts commit 4739b31dafc5154a2c7d6b3f0ee90686863656f0. Apparently, passing a param of type css::uno::Exception to Any will record precisely a css::uno::Exception in that Any, losing any subtype information, which this commit changed.
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/ContentHelper.cxx16
-rw-r--r--dbaccess/source/core/dataaccess/documentcontainer.cxx12
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.cxx16
3 files changed, 22 insertions, 22 deletions
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx
index 7de44a4dd64a..4eea9fec1dbb 100644
--- a/dbaccess/source/core/dataaccess/ContentHelper.cxx
+++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx
@@ -165,10 +165,10 @@ Any SAL_CALL OContentHelper::execute( const Command& aCommand, sal_Int32 /*Comma
{
OSL_FAIL( "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -183,10 +183,10 @@ Any SAL_CALL OContentHelper::execute( const Command& aCommand, sal_Int32 /*Comma
{
OSL_FAIL( "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -195,10 +195,10 @@ Any SAL_CALL OContentHelper::execute( const Command& aCommand, sal_Int32 /*Comma
{
OSL_FAIL( "No properties!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -221,9 +221,9 @@ Any SAL_CALL OContentHelper::execute( const Command& aCommand, sal_Int32 /*Comma
OSL_FAIL( "Content::execute - unsupported command!" );
ucbhelper::cancelCommandExecution(
- UnsupportedCommandException(
+ makeAny( UnsupportedCommandException(
OUString(),
- static_cast< cppu::OWeakObject * >( this ) ),
+ static_cast< cppu::OWeakObject * >( this ) ) ),
Environment );
// Unreachable
}
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index d8a14c8df1c9..c7ddcb6686ac 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -402,10 +402,10 @@ Any SAL_CALL ODocumentContainer::execute( const Command& aCommand, sal_Int32 Com
{
OSL_FAIL( "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -429,10 +429,10 @@ Any SAL_CALL ODocumentContainer::execute( const Command& aCommand, sal_Int32 Com
{
// Unsupported.
ucbhelper::cancelCommandExecution(
- UnsupportedOpenModeException(
+ makeAny( UnsupportedOpenModeException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- sal_Int16( aOpenCommand.Mode ) ),
+ sal_Int16( aOpenCommand.Mode ) ) ),
Environment );
// Unreachable
}
@@ -446,10 +446,10 @@ Any SAL_CALL ODocumentContainer::execute( const Command& aCommand, sal_Int32 Com
{
OSL_FAIL( "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 29c531c6fcd1..8818e685be2c 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.cxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx
@@ -883,10 +883,10 @@ Any ODocumentDefinition::onCommandOpenSomething( const Any& _rOpenArgument, cons
{
// not supported
ucbhelper::cancelCommandExecution(
- UnsupportedOpenModeException(
+ makeAny( UnsupportedOpenModeException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- sal_Int16( nOpenMode ) ),
+ sal_Int16( nOpenMode ) ) ),
_rxEnvironment );
// Unreachable
OSL_FAIL( "unreachable" );
@@ -1018,10 +1018,10 @@ Any SAL_CALL ODocumentDefinition::execute( const Command& aCommand, sal_Int32 Co
{
OSL_FAIL( "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -1044,10 +1044,10 @@ Any SAL_CALL ODocumentDefinition::execute( const Command& aCommand, sal_Int32 Co
{
OSL_FAIL( "Wrong argument count!" );
ucbhelper::cancelCommandExecution(
- IllegalArgumentException(
+ makeAny( IllegalArgumentException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- -1 ),
+ -1 ) ),
Environment );
// Unreachable
}
@@ -1161,10 +1161,10 @@ void ODocumentDefinition::onCommandInsert( const OUString& _sURL, const Referenc
Sequence<OUString> aProps { PROPERTY_URL };
ucbhelper::cancelCommandExecution(
- MissingPropertiesException(
+ makeAny( MissingPropertiesException(
OUString(),
static_cast< cppu::OWeakObject * >( this ),
- aProps ),
+ aProps ) ),
Environment );
// Unreachable
}