summaryrefslogtreecommitdiff
path: root/comphelper/source/property/opropertybag.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/property/opropertybag.cxx')
-rw-r--r--comphelper/source/property/opropertybag.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index 1018413befb6..5f5a1289ba31 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -84,22 +84,14 @@ namespace comphelper
&& (_rArguments[1] >>= AllowEmptyPropertyName)
&& (_rArguments[2] >>= AutomaticAddition))
{
- std::copy(
- aTypes.begin(),
- aTypes.end(),
- std::insert_iterator< TypeBag >( m_aAllowedTypes, m_aAllowedTypes.begin() )
- );
+ m_aAllowedTypes.insert(aTypes.begin(), aTypes.end());
m_bAutoAddProperties = AutomaticAddition;
} else {
::comphelper::NamedValueCollection aArguments( _rArguments );
if ( aArguments.get_ensureType( "AllowedTypes", aTypes ) )
- std::copy(
- aTypes.begin(),
- aTypes.end(),
- std::insert_iterator< TypeBag >( m_aAllowedTypes, m_aAllowedTypes.begin() )
- );
+ m_aAllowedTypes.insert( aTypes.begin(), aTypes.end());
aArguments.get_ensureType( "AutomaticAddition", m_bAutoAddProperties );
aArguments.get_ensureType( "AllowEmptyPropertyName",