loplugin:subtlezeroinit: filter

Change-Id: I4842b8a82f7fe3a4a5c33da2780ced61d66293ba
This commit is contained in:
Stephan Bergmann
2017-02-20 19:57:05 +01:00
parent c7d59ad877
commit c5346d4464

View File

@@ -1186,7 +1186,7 @@ const char* GetOOXMLPresetGeometry( const char* sShapeType )
{ {
if( pCustomShapeTypeTranslationHashMap == nullptr ) if( pCustomShapeTypeTranslationHashMap == nullptr )
{ {
pCustomShapeTypeTranslationHashMap = new CustomShapeTypeTranslationHashMap (); pCustomShapeTypeTranslationHashMap = new CustomShapeTypeTranslationHashMap;
for(const msfilter::util::CustomShapeTypeTranslationTable& i : pCustomShapeTypeTranslationTable) for(const msfilter::util::CustomShapeTypeTranslationTable& i : pCustomShapeTypeTranslationTable)
{ {
(*pCustomShapeTypeTranslationHashMap)[ i.sOOo ] = i.sMSO; (*pCustomShapeTypeTranslationHashMap)[ i.sOOo ] = i.sMSO;
@@ -1206,7 +1206,7 @@ MSO_SPT GETVMLShapeType(const OString& aType)
if (!pDMLToVMLMap) if (!pDMLToVMLMap)
{ {
pDMLToVMLMap = new DMLToVMLTranslationHashMap(); pDMLToVMLMap = new DMLToVMLTranslationHashMap;
for (auto& i : pDMLToVMLTable) for (auto& i : pDMLToVMLTable)
(*pDMLToVMLMap)[i.sDML] = i.nVML; (*pDMLToVMLMap)[i.sDML] = i.nVML;
} }