cppcheck: fix Same expression on both sides of '||' + simplify a bit
Change-Id: I7903c4af5263f93dc4d311b73cb21e144a63d8d9
This commit is contained in:
@@ -151,26 +151,22 @@ void SvMetaModule::WriteAttributesSvIdl( SvIdlDataBase & rBase,
|
||||
sal_uInt16 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() )
|
||||
{
|
||||
WriteTab( rOutStm, nTab );
|
||||
aHelpFileName.WriteSvIdl( SvHash_HelpFile(), rOutStm, nTab +1 );
|
||||
rOutStm << ';' << endl;
|
||||
}
|
||||
if( !aSlotIdFile.getString().isEmpty() )
|
||||
{
|
||||
WriteTab( rOutStm, nTab );
|
||||
aSlotIdFile.WriteSvIdl( SvHash_SlotIdFile(), rOutStm, nTab +1 );
|
||||
rOutStm << ';' << endl;
|
||||
}
|
||||
if( !aTypeLibFile.getString().isEmpty() )
|
||||
{
|
||||
WriteTab( rOutStm, nTab );
|
||||
aTypeLibFile.WriteSvIdl( SvHash_TypeLibFile(), rOutStm, nTab +1 );
|
||||
rOutStm << ';' << endl;
|
||||
}
|
||||
rOutStm << ';' << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user