mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
Fix using of std::set::const_iterator as agrument of set::erase method.
It's incompatible with MS compiler.
This commit is contained in:
parent
3a41eb0de6
commit
671bdf94c7
@ -139,7 +139,8 @@ void SMDS_MeshGroup::Add(const SMDS_MeshElement * theElem)
|
||||
|
||||
bool SMDS_MeshGroup::Remove(const SMDS_MeshElement * theElem)
|
||||
{
|
||||
TIterator found = myElements.find(theElem);
|
||||
std::set<const SMDS_MeshElement *>::iterator found
|
||||
= myElements.find(theElem);
|
||||
if ( found != myElements.end() ) {
|
||||
myElements.erase(found);
|
||||
if (myElements.empty()) myType = SMDSAbs_All;
|
||||
|
Loading…
Reference in New Issue
Block a user