mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024171: Eliminate CLang compiler warning -Wreorder
Got rid of -Wreorder warning (wrong fields' initialization order); some warnings -Wdangling-else are also fixed
This commit is contained in:
@@ -281,10 +281,11 @@ void IGESDefs_ToolAttributeTable::OwnCheck
|
||||
(const Handle(IGESDefs_AttributeTable)& ent,
|
||||
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
|
||||
{
|
||||
if (ent->Definition().IsNull())
|
||||
if (ent->Definition().IsNull()) {
|
||||
if (ent->HasStructure()) ach->AddFail
|
||||
("Structure in Directory Entry is not an Attribute Definition Table");
|
||||
else ach->AddFail("No Attribute Definition defined");
|
||||
}
|
||||
if (ent->FormNumber() == 0 && ent->NbRows() != 1)
|
||||
ach->AddFail("Form 0 with several Rows");
|
||||
if (ent->NbAttributes() != ent->Definition()->NbAttributes())
|
||||
|
Reference in New Issue
Block a user