Fix for compilation with gcc 4.7

This commit is contained in:
gdd 2012-06-07 11:26:44 +00:00
parent d4a710ce52
commit 86c4cc3003
3 changed files with 2 additions and 3 deletions

View File

@ -2828,7 +2828,7 @@ struct MYNode_Map_Iterator: public FATHER
template <typename ELEM=const SMDS_MeshElement*>
class IdSortedIterator : public SMDS_Iterator<ELEM>
{
const SMDS_MeshElementIDFactory& myIDFact;
SMDS_MeshElementIDFactory& myIDFact;
int myID, myMaxID, myNbFound, myTotalNb;
SMDSAbs_ElementType myType;
ELEM myElem;

View File

@ -4865,7 +4865,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements,
const SMDS_MeshElement* currentElem = NULL;
int totalNbEdges = theTrack->NbEdges();
SMDS_ElemIteratorPtr nIt;
bool isClosed = false;
//check start node
if( !theTrack->GetMeshDS()->Contains(theN1) ) {
@ -4897,7 +4896,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements,
//case of the closed mesh
if(currentNode == theN1) {
nbEdges++;
isClosed = true;
break;
}

View File

@ -36,6 +36,7 @@
#ifdef WIN32
#include <io.h>
#else
#include <unistd.h>
#include <sys/mman.h>
#endif