| 42 | } |
| 43 | |
| 44 | void SceneGraph::removeSceneObserver(Graph::Observer* observer) |
| 45 | { |
| 46 | // Cycle through the list of observers and call the moved method |
| 47 | for (ObserverList::iterator i = _sceneObservers.begin(); i != _sceneObservers.end(); ++i) |
| 48 | { |
| 49 | Graph::Observer* registered = *i; |
| 50 | |
| 51 | if (registered == observer) |
| 52 | { |
| 53 | _sceneObservers.erase(i); |
| 54 | return; // Don't continue the loop, the iterator is obsolete |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void SceneGraph::sceneChanged() |
| 60 | { |
no test coverage detected