Kaydet (Commit) c959586c authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: fix Same expression on both sides of '||' + simplify a bit

Change-Id: I7903c4af5263f93dc4d311b73cb21e144a63d8d9
üst 4148ba70
...@@ -151,26 +151,22 @@ void SvMetaModule::WriteAttributesSvIdl( SvIdlDataBase & rBase, ...@@ -151,26 +151,22 @@ void SvMetaModule::WriteAttributesSvIdl( SvIdlDataBase & rBase,
sal_uInt16 nTab ) sal_uInt16 nTab )
{ {
SvMetaExtern::WriteAttributesSvIdl( rBase, rOutStm, nTab ); SvMetaExtern::WriteAttributesSvIdl( rBase, rOutStm, nTab );
if( !aTypeLibFile.getString().isEmpty() || !aSlotIdFile.getString().isEmpty() || !aTypeLibFile.getString().isEmpty() ) if( !aHelpFileName.getString().isEmpty() || !aSlotIdFile.getString().isEmpty() || !aTypeLibFile.getString().isEmpty() )
{ {
WriteTab( rOutStm, nTab );
if( !aHelpFileName.getString().isEmpty() ) if( !aHelpFileName.getString().isEmpty() )
{ {
WriteTab( rOutStm, nTab );
aHelpFileName.WriteSvIdl( SvHash_HelpFile(), rOutStm, nTab +1 ); aHelpFileName.WriteSvIdl( SvHash_HelpFile(), rOutStm, nTab +1 );
rOutStm << ';' << endl;
} }
if( !aSlotIdFile.getString().isEmpty() ) if( !aSlotIdFile.getString().isEmpty() )
{ {
WriteTab( rOutStm, nTab );
aSlotIdFile.WriteSvIdl( SvHash_SlotIdFile(), rOutStm, nTab +1 ); aSlotIdFile.WriteSvIdl( SvHash_SlotIdFile(), rOutStm, nTab +1 );
rOutStm << ';' << endl;
} }
if( !aTypeLibFile.getString().isEmpty() ) if( !aTypeLibFile.getString().isEmpty() )
{ {
WriteTab( rOutStm, nTab );
aTypeLibFile.WriteSvIdl( SvHash_TypeLibFile(), rOutStm, nTab +1 ); aTypeLibFile.WriteSvIdl( SvHash_TypeLibFile(), rOutStm, nTab +1 );
rOutStm << ';' << endl;
} }
rOutStm << ';' << endl;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment