diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/ext/ucpext_content.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/ext/ucpext_datasupplier.cxx | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx index 2c561322aec8..266ed9fcc4a5 100644 --- a/ucb/source/ucp/ext/ucpext_content.cxx +++ b/ucb/source/ucp/ext/ucpext_content.cxx @@ -474,8 +474,8 @@ namespace ucb { namespace ucp { namespace ext // translate the property request Sequence< OUString > aPropertyNames( i_rProperties.getLength() ); ::std::transform( - i_rProperties.getConstArray(), - i_rProperties.getConstArray() + i_rProperties.getLength(), + i_rProperties.begin(), + i_rProperties.end(), aPropertyNames.getArray(), SelectPropertyName() ); diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx index b394ab00f450..c60dbc7b58e1 100644 --- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx +++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx @@ -126,18 +126,15 @@ namespace ucb { namespace ucp { namespace ext case E_ROOT: { Sequence< Sequence< OUString > > aExtensionInfo( xPackageInfo->getExtensionList() ); - for ( const Sequence< OUString >* pExtInfo = aExtensionInfo.getConstArray(); - pExtInfo != aExtensionInfo.getConstArray() + aExtensionInfo.getLength(); - ++pExtInfo - ) + for ( auto const & extInfo : aExtensionInfo ) { - if ( pExtInfo->getLength() <= 0 ) + if ( extInfo.getLength() <= 0 ) { SAL_WARN( "ucb.ucp.ext", "illegal extension info" ); continue; } - const OUString& rLocalId = (*pExtInfo)[0]; + const OUString& rLocalId = extInfo[0]; ResultListEntry aEntry; aEntry.sId = ContentProvider::getRootURL() + Content::encodeIdentifier( rLocalId ) + "/"; m_pImpl->m_aResults.push_back( aEntry ); |