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:
Noel Grandin
2021-04-12 17:01:01 +02:00
committed by Noel Grandin
parent 46fe595379
commit 26fc87c682
2 changed files with 2 additions and 2 deletions

View File

@@ -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 )

View File

@@ -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;
}
}