diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 14 |
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 ); |