| 279 | } |
| 280 | |
| 281 | ProcessObject* ProcessList::findNearestToEnd(Vector<ProcessObject*>& objs) const |
| 282 | { |
| 283 | if (objs.empty()) |
| 284 | return 0; |
| 285 | |
| 286 | for (ProcessObject* obj = mHead.mProcessLink.prev; obj != &mHead; obj = obj->mProcessLink.prev) |
| 287 | { |
| 288 | for (S32 i = 0; i < objs.size(); i++) |
| 289 | { |
| 290 | if (obj == objs[i]) |
| 291 | return obj; |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | return 0; |
| 296 | } |
| 297 |
no test coverage detected