diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 0fbbeaf08cb0..6403dbbc1fa6 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -94,7 +94,7 @@ struct SfxItemPropertySimpleEntry assert(_nFlags <= 0x1ff ); } - SfxItemPropertySimpleEntry( const SfxItemPropertyMapEntry& rMapEntry ) + explicit SfxItemPropertySimpleEntry( const SfxItemPropertyMapEntry& rMapEntry ) : aType( rMapEntry.aType ) , nWID( rMapEntry.nWID ) , nFlags( rMapEntry.nFlags ) diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 7898464b9b84..57e44a7f861a 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -39,7 +39,7 @@ SfxItemPropertyMap::SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries { while( !pEntries->aName.empty() ) { - m_aMap[ pEntries->aName ] = *pEntries; + m_aMap.emplace( pEntries->aName, *pEntries ); ++pEntries; } }