mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 16:10:37 +05:00
Fix for compilation with gcc 4.7
This commit is contained in:
parent
d4a710ce52
commit
86c4cc3003
@ -2828,7 +2828,7 @@ struct MYNode_Map_Iterator: public FATHER
|
|||||||
template <typename ELEM=const SMDS_MeshElement*>
|
template <typename ELEM=const SMDS_MeshElement*>
|
||||||
class IdSortedIterator : public SMDS_Iterator<ELEM>
|
class IdSortedIterator : public SMDS_Iterator<ELEM>
|
||||||
{
|
{
|
||||||
const SMDS_MeshElementIDFactory& myIDFact;
|
SMDS_MeshElementIDFactory& myIDFact;
|
||||||
int myID, myMaxID, myNbFound, myTotalNb;
|
int myID, myMaxID, myNbFound, myTotalNb;
|
||||||
SMDSAbs_ElementType myType;
|
SMDSAbs_ElementType myType;
|
||||||
ELEM myElem;
|
ELEM myElem;
|
||||||
|
@ -4865,7 +4865,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements,
|
|||||||
const SMDS_MeshElement* currentElem = NULL;
|
const SMDS_MeshElement* currentElem = NULL;
|
||||||
int totalNbEdges = theTrack->NbEdges();
|
int totalNbEdges = theTrack->NbEdges();
|
||||||
SMDS_ElemIteratorPtr nIt;
|
SMDS_ElemIteratorPtr nIt;
|
||||||
bool isClosed = false;
|
|
||||||
|
|
||||||
//check start node
|
//check start node
|
||||||
if( !theTrack->GetMeshDS()->Contains(theN1) ) {
|
if( !theTrack->GetMeshDS()->Contains(theN1) ) {
|
||||||
@ -4897,7 +4896,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements,
|
|||||||
//case of the closed mesh
|
//case of the closed mesh
|
||||||
if(currentNode == theN1) {
|
if(currentNode == theN1) {
|
||||||
nbEdges++;
|
nbEdges++;
|
||||||
isClosed = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#else
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user