From a2fc883173d7053cefe543620982051ae40c4b03 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Jun 2020 15:02:35 +0200 Subject: use more std::container::insert instead of std::copy which is both more compact code, and more efficient, since the insert method can do smarter resizing Change-Id: I17f226660f87cdf002edccc29b4af8fd59a25f91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96948 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/passwordcontainer/syscreds.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'svl/source') diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx index 09604631051b..73020ef60f2a 100644 --- a/svl/source/passwordcontainer/syscreds.cxx +++ b/svl/source/passwordcontainer/syscreds.cxx @@ -172,9 +172,7 @@ void SysCredentialsConfig::initCfg() { uno::Sequence< OUString > aURLs( m_aConfigItem.getSystemCredentialsURLs() ); - std::copy(aURLs.begin(), aURLs.end(), - std::inserter(m_aCfgContainer, m_aCfgContainer.end())); - + m_aCfgContainer.insert( aURLs.begin(), aURLs.end() ); m_bCfgInited = true; } } -- cgit