diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-12-27 14:23:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-12-27 14:28:42 +0100 |
commit | c959586c09e6269ac8ff44de917e4a900e895728 (patch) | |
tree | 6318176b1068a2833a53af2dbe0a3188f2b628a5 /idl | |
parent | 4148ba7075159c9966b83594e51deb9c9759d722 (diff) |
cppcheck: fix Same expression on both sides of '||' + simplify a bit
Change-Id: I7903c4af5263f93dc4d311b73cb21e144a63d8d9
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/module.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index b78de7443970..19c380b52f01 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -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; } } |