make SfxItemPropertySimpleEntry constructor explicit
Change-Id: I09d6045320b44746fbdb103db884c214e0509a78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114012 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
46fe595379
commit
26fc87c682
@@ -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 )
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user