diff options
Diffstat (limited to 'ucb/source/ucp/cmis/cmis_content.cxx')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 60e62315d869..59ad8df05118 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -240,17 +240,17 @@ namespace uno::Sequence< uno::Any > aArguments{ uno::Any(beans::PropertyValue( "Binding URL", - 1, - uno::makeAny( rURL.getBindingUrl() ), + uno::Any( rURL.getBindingUrl() ), beans::PropertyState_DIRECT_VALUE )), uno::Any(beans::PropertyValue( "Username", -1, - uno::makeAny( rURL.getUsername() ), + uno::Any( rURL.getUsername() ), beans::PropertyState_DIRECT_VALUE )), uno::Any(beans::PropertyValue( "Repository Id", -1, - uno::makeAny( rURL.getRepositoryId() ), + uno::Any( rURL.getRepositoryId() ), beans::PropertyState_DIRECT_VALUE )) }; return aArguments; @@ -595,7 +595,7 @@ namespace cmis uno::Any Content::getBadArgExcept() { - return uno::makeAny( lang::IllegalArgumentException( + return uno::Any( lang::IllegalArgumentException( "Wrong argument type!", static_cast< cppu::OWeakObject * >( this ), -1) ); } @@ -780,7 +780,7 @@ namespace cmis } else if ( rProp.Name == "CreatableContentsInfo" ) { - xRow->appendObject( rProp, uno::makeAny( queryCreatableContentsInfo( xEnv ) ) ); + xRow->appendObject( rProp, uno::Any( queryCreatableContentsInfo( xEnv ) ) ); } else if ( rProp.Name == "MediaType" ) { @@ -874,7 +874,7 @@ namespace cmis } ++i; } - xRow->appendObject( rProp.Name, uno::makeAny( aCmisProperties ) ); + xRow->appendObject( rProp.Name, uno::Any( aCmisProperties ) ); } catch ( const libcmis::Exception& ) { @@ -969,7 +969,7 @@ namespace cmis if ( !getObject( xEnv ) ) { uno::Sequence< uno::Any > aArgs{ uno::Any(m_xIdentifier->getContentIdentifier()) }; - uno::Any aErr = uno::makeAny( + uno::Any aErr( ucb::InteractiveAugmentedIOException(OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, bIsFolder ? ucb::IOErrorCode_NOT_EXISTING_PATH : ucb::IOErrorCode_NOT_EXISTING, aArgs) @@ -1000,7 +1000,7 @@ namespace cmis ) { ucbhelper::cancelCommandExecution( - uno::makeAny ( ucb::UnsupportedOpenModeException + uno::Any ( ucb::UnsupportedOpenModeException ( OUString(), static_cast< cppu::OWeakObject * >( this ), sal_Int16( rOpenCommand.Mode ) ) ), xEnv ); @@ -1014,7 +1014,7 @@ namespace cmis SAL_INFO( "ucb.ucp.cmis", "Failed to copy data to sink" ); ucbhelper::cancelCommandExecution( - uno::makeAny (ucb::UnsupportedDataSinkException + uno::Any (ucb::UnsupportedDataSinkException ( OUString(), static_cast< cppu::OWeakObject * >( this ), rOpenCommand.Sink ) ), xEnv ); @@ -1258,7 +1258,7 @@ namespace cmis if ( sSrcBindingUrl != m_aURL.getBindingUrl( ) ) { ucbhelper::cancelCommandExecution( - uno::makeAny( + uno::Any( ucb::InteractiveBadTransferURLException( "Unsupported URL scheme!", static_cast< cppu::OWeakObject * >( this ) ) ), @@ -1275,7 +1275,7 @@ namespace cmis { if ( !xInputStream.is() ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( ucb::MissingInputStreamException ( OUString(), static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1304,7 +1304,7 @@ namespace cmis std::map< std::string, libcmis::PropertyPtr >::iterator it = m_pObjectProps.find( "cmis:name" ); if ( it == m_pObjectProps.end( ) ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( uno::RuntimeException( "Missing name property", static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1332,7 +1332,7 @@ namespace cmis // Are the base type matching? if ( object->getBaseType( ) != m_pObjectType->getBaseType( )->getId() ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( uno::RuntimeException( "Can't change a folder into a document and vice-versa.", static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1351,7 +1351,7 @@ namespace cmis } catch ( const libcmis::Exception& ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( uno::RuntimeException( "Error when setting document content", static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1373,7 +1373,7 @@ namespace cmis } catch ( const libcmis::Exception& ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( uno::RuntimeException( "Error when creating folder", static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1391,7 +1391,7 @@ namespace cmis } catch ( const libcmis::Exception& ) { - ucbhelper::cancelCommandExecution( uno::makeAny + ucbhelper::cancelCommandExecution( uno::Any ( uno::RuntimeException( "Error when creating document", static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); @@ -1875,7 +1875,7 @@ namespace cmis SAL_INFO( "ucb.ucp.cmis", "Unknown command to execute" ); ucbhelper::cancelCommandExecution - ( uno::makeAny( ucb::UnsupportedCommandException + ( uno::Any( ucb::UnsupportedCommandException ( OUString(), static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); |