-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <Events_Loop.h>
aFindID->second[theSender] = std::list<Events_Listener*>();
aFindSender = aFindID->second.find(theSender);
}
- // check that listener was not registered wit hsuch parameters before
+ // check that listener was not registered with such parameters before
std::list<Events_Listener*>& aListeners = aFindSender->second;
for (std::list<Events_Listener*>::iterator aL = aListeners.begin(); aL != aListeners.end(); aL++)
if (*aL == theListener)
aLMap.erase(aLIt->first);
myListeners[anIt->first] = aLMap;
if (aLMap.empty())
- break; // avoid incrementation of the iterator if the the container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
aLIt++;
}
if (anIt->second.empty()) {
myListeners.erase(anIt->first);
if (myListeners.empty())
- break; // avoid incrementation of the iterator if the the container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
anIt++;
}
if (anImIt->second == theListener) {
myImmediateListeners.erase(anImIt->first);
if (myImmediateListeners.empty())
- break; // avoid incrementation of the iterator if the the container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
anImIt++;
}
// TODO: Stabilization fix. Check later.
if(myFlushed.find(theID.myID) != myFlushed.end()) {
myFlushed.erase(myFlushed.find(theID.myID));
- } else {
+ }
+#ifdef _DEBUG
+ else {
bool aProblem = true;
}
+#endif
}
// send accumulated messages to "groupListeners"
std::map<char*, std::map<void*, std::list<Events_Listener*> > >::iterator aFindID =