Fix warning

unused variable 'ielem'
This commit is contained in:
eap 2013-09-27 07:54:54 +00:00
parent 95ac4b3747
commit 8b3847f1af

View File

@ -9931,8 +9931,8 @@ bool SMESH_MeshEditor::AffectedElemGroupsInRegion( const TIDSortedElemSet& theEl
// --- iterates on elements to be replicated and get elements by back references from their nodes // --- iterates on elements to be replicated and get elements by back references from their nodes
TIDSortedElemSet::const_iterator elemItr = theElems.begin(); TIDSortedElemSet::const_iterator elemItr = theElems.begin();
int ielem = 1; int ielem;
for ( ; elemItr != theElems.end(); ++elemItr ) for ( ielem=1; elemItr != theElems.end(); ++elemItr )
{ {
SMDS_MeshElement* anElem = (SMDS_MeshElement*)*elemItr; SMDS_MeshElement* anElem = (SMDS_MeshElement*)*elemItr;
if (!anElem || (anElem->GetType() != SMDSAbs_Face)) if (!anElem || (anElem->GetType() != SMDSAbs_Face))
@ -10034,8 +10034,8 @@ bool SMESH_MeshEditor::AffectedElemGroupsInRegion( const TIDSortedElemSet& theEl
// iterates on indicated elements and get elements by back references from their nodes // iterates on indicated elements and get elements by back references from their nodes
TIDSortedElemSet::const_iterator elemItr = theElems.begin(); TIDSortedElemSet::const_iterator elemItr = theElems.begin();
int ielem = 1; int ielem;
for ( ; elemItr != theElems.end(); ++elemItr ) for ( ielem = 1; elemItr != theElems.end(); ++elemItr )
{ {
MESSAGE("element " << ielem++); MESSAGE("element " << ielem++);
SMDS_MeshElement* anElem = (SMDS_MeshElement*)*elemItr; SMDS_MeshElement* anElem = (SMDS_MeshElement*)*elemItr;