summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-05-22 13:49:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-22 16:35:20 +0200
commitc18e2ea2a52fc171c50fcb22d431e94c6aececc5 (patch)
treea63721b18626947e5278a51feb7fd64604e80eee /desktop
parentSpell out element access explicitly in test code (diff)
downloadcore-c18e2ea2a52fc171c50fcb22d431e94c6aececc5.tar.gz
core-c18e2ea2a52fc171c50fcb22d431e94c6aececc5.zip
New loplugin:data
...following up on 1453c2c8f13bac64ecd1981af7cebf1c421808ac "prefer vector::data to &vector[0]" Change-Id: I7c113747d92d144a521d49b89384dd8bf1215c01 Reviewed-on: https://gerrit.libreoffice.org/72765 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/migration/migration.cxx2
-rw-r--r--desktop/source/migration/services/oo3extensionmigration.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index d3df7559998e..599db808cd41 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -823,7 +823,7 @@ void MigrationImpl::runServices()
sal_uInt32 nSize = rMigration.excludeExtensions.size();
if ( nSize > 0 )
seqExtBlackList = comphelper::arrayToSequence< OUString >(
- &rMigration.excludeExtensions[0], nSize );
+ rMigration.excludeExtensions.data(), nSize );
seqArguments[2] <<= NamedValue("ExtensionBlackList",
uno::makeAny( seqExtBlackList ));
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index 3f814e2cc1eb..01f9c2e93355 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -326,7 +326,7 @@ void OO3ExtensionMigration::initialize( const Sequence< Any >& aArguments )
if ( (aValue.Value >>= aBlackList ) && ( aBlackList.getLength() > 0 ))
{
m_aBlackList.resize( aBlackList.getLength() );
- ::comphelper::sequenceToArray< OUString >( &m_aBlackList[0], aBlackList );
+ ::comphelper::sequenceToArray< OUString >( m_aBlackList.data(), aBlackList );
}
}
}