| 199 | //----------------------------------------------------------------------------- |
| 200 | |
| 201 | void SimSet::popObject() |
| 202 | { |
| 203 | if(mObjectList.empty() ) |
| 204 | { |
| 205 | AssertWarn(false, "Stack underflow in SimSet::popObject"); |
| 206 | return; |
| 207 | } |
| 208 | |
| 209 | lock(); |
| 210 | SimObject* object = mObjectList.last(); |
| 211 | mObjectList.pop_back(); |
| 212 | |
| 213 | clearNotify( object ); |
| 214 | unlock(); |
| 215 | |
| 216 | getSetModificationSignal().trigger( SetObjectRemoved, this, object ); |
| 217 | if( object->isProperlyAdded() ) |
| 218 | onObjectRemoved_callback( object ); |
| 219 | } |
| 220 | |
| 221 | //----------------------------------------------------------------------------- |
| 222 |
no test coverage detected