Skip to content

Commit

Permalink
3rdParty/salomesmesh: suppress several small warnings
Browse files Browse the repository at this point in the history
Warnings was about a struct declared as type and as usual added several
additional brackets.
  • Loading branch information
Fat-Zer authored and wwmayer committed Aug 29, 2015
1 parent c3dfc7e commit a8634f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/3rdParty/salomesmesh/inc/SMESH_subMesh.hxx
Expand Up @@ -47,7 +47,7 @@ class SMESH_Hypothesis;
class SMESH_Algo;
class SMESH_Gen;
class SMESH_subMeshEventListener;
class SMESH_subMeshEventListenerData;
struct SMESH_subMeshEventListenerData;
class SMESH_subMesh;

typedef SMESH_subMeshEventListener EventListener;
Expand Down
Expand Up @@ -33,7 +33,7 @@

class SMESH_subMesh;
class SMESH_Hypothesis;
struct SMESH_subMeshEventListenerData;
struct SMESH_subMeshEventListenerData;

// ------------------------------------------------------------------
/*!
Expand Down
Expand Up @@ -187,8 +187,8 @@ int HashCode(const Link& aLink, int aLimit)

Standard_Boolean IsEqual(const Link& aLink1, const Link& aLink2)
{
return (aLink1.n1 == aLink2.n1 && aLink1.n2 == aLink2.n2 ||
aLink1.n1 == aLink2.n2 && aLink1.n2 == aLink2.n1);
return (aLink1.n1 == aLink2.n1 && aLink1.n2 == aLink2.n2) ||
(aLink1.n1 == aLink2.n2 && aLink1.n2 == aLink2.n1);
}

//================================================================================
Expand Down Expand Up @@ -475,11 +475,13 @@ bool NETGENPlugin_Mesher::fillNgMesh(netgen::OCCGeometry& occgeom,

for ( int i = 0; i < 3; ++i ) {
const SMDS_MeshNode* node = f->GetNode( i ), * inFaceNode=0;
if ( helper.IsSeamShape( node->GetPosition()->GetShapeId() ))
if ( helper.IsSeamShape( f->GetNodeWrap( i+1 )->GetPosition()->GetShapeId() ))
if ( helper.IsSeamShape( node->GetPosition()->GetShapeId() )) {
if ( helper.IsSeamShape( f->GetNodeWrap( i+1 )->GetPosition()->GetShapeId() )) {
inFaceNode = f->GetNodeWrap( i-1 );
else
} else {
inFaceNode = f->GetNodeWrap( i+1 );
}
}

gp_XY uv = helper.GetNodeUV( geomFace, node, inFaceNode );
if ( reverse ) {
Expand Down

0 comments on commit a8634f0

Please sign in to comment.