summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-05 09:44:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-05 11:44:48 +0200
commit7c5d3d74ee7c1f5bb87e46c5ff532451a94cf115 (patch)
treec02acd364bad74c777dd04f4b4f1c70529fd22b9 /ucb
parent08c979e235aa993f50e54224f8c715bb70697c33 (diff)
Just use Any ctor instead of makeAny (Linux, sequel)
Change-Id: Idcf537a838bb0e47cfa31db8bc09e477b277ee37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133875 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index 52509a361163..44037217882b 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -300,7 +300,7 @@ css::uno::Any Content::mapGIOError( GError *pError )
css::uno::Any Content::getBadArgExcept()
{
- return css::uno::makeAny( css::lang::IllegalArgumentException(
+ return css::uno::Any( css::lang::IllegalArgumentException(
"Wrong argument type!",
static_cast< cppu::OWeakObject * >( this ), -1) );
}
@@ -535,7 +535,7 @@ css::uno::Reference< css::sdbc::XRow > Content::getPropertyValues(
}
else if ( rProp.Name == "CreatableContentsInfo" )
{
- xRow->appendObject( rProp, css::uno::makeAny( queryCreatableContentsInfo( xEnv ) ) );
+ xRow->appendObject( rProp, css::uno::Any( queryCreatableContentsInfo( xEnv ) ) );
}
else
{
@@ -876,7 +876,7 @@ css::uno::Any Content::open(const css::ucb::OpenCommandArgument2 & rOpenCommand,
{
css::uno::Sequence< css::uno::Any > aArgs{ css::uno::Any(
m_xIdentifier->getContentIdentifier()) };
- css::uno::Any aErr = css::uno::makeAny(
+ css::uno::Any aErr(
css::ucb::InteractiveAugmentedIOException(OUString(), static_cast< cppu::OWeakObject * >( this ),
css::task::InteractionClassification_ERROR,
bIsFolder ? css::ucb::IOErrorCode_NOT_EXISTING_PATH : css::ucb::IOErrorCode_NOT_EXISTING, aArgs)
@@ -907,7 +907,7 @@ css::uno::Any Content::open(const css::ucb::OpenCommandArgument2 & rOpenCommand,
)
{
ucbhelper::cancelCommandExecution(
- css::uno::makeAny ( css::ucb::UnsupportedOpenModeException
+ css::uno::Any ( css::ucb::UnsupportedOpenModeException
( OUString(), static_cast< cppu::OWeakObject * >( this ),
sal_Int16( rOpenCommand.Mode ) ) ),
xEnv );
@@ -921,7 +921,7 @@ css::uno::Any Content::open(const css::ucb::OpenCommandArgument2 & rOpenCommand,
SAL_WARN("ucb.ucp.gio", "Failed to load data from '" << m_xIdentifier->getContentIdentifier() << "'");
ucbhelper::cancelCommandExecution(
- css::uno::makeAny (css::ucb::UnsupportedDataSinkException
+ css::uno::Any (css::ucb::UnsupportedDataSinkException
( OUString(), static_cast< cppu::OWeakObject * >( this ),
rOpenCommand.Sink ) ),
xEnv );
@@ -1011,7 +1011,7 @@ css::uno::Any SAL_CALL Content::execute(
SAL_WARN("ucb.ucp.gio", "Unknown command " << aCommand.Name);
ucbhelper::cancelCommandExecution
- ( css::uno::makeAny( css::ucb::UnsupportedCommandException
+ ( css::uno::Any( css::ucb::UnsupportedCommandException
( OUString(),
static_cast< cppu::OWeakObject * >( this ) ) ),
xEnv );
@@ -1053,7 +1053,7 @@ void Content::insert(const css::uno::Reference< css::io::XInputStream > &xInputS
if ( !xInputStream.is() )
{
- ucbhelper::cancelCommandExecution( css::uno::makeAny
+ ucbhelper::cancelCommandExecution( css::uno::Any
( css::ucb::MissingInputStreamException
( OUString(), static_cast< cppu::OWeakObject * >( this ) ) ),
xEnv );