summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 13:27:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:35:23 +0200
commitab9b38a4064141705aa3a3de9a5d73b465ad3af3 (patch)
tree888fcc6b517c44d77e2d297c13ee84fb487dd7a7 /ucb
parent13341ffa49d58f313a05edae4f4f04c215658e9f (diff)
use more begin()/end() for Sequence
Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx4
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx9
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 );