| 2247 | //----------------------------------------------------------------------------- |
| 2248 | |
| 2249 | bool SimObject::setProtectedParent( void *obj, const char *index, const char *data ) |
| 2250 | { |
| 2251 | SimGroup *parent = NULL; |
| 2252 | SimObject *object = static_cast<SimObject*>(obj); |
| 2253 | |
| 2254 | if(Sim::findObject(data, parent)) |
| 2255 | parent->addObject(object); |
| 2256 | |
| 2257 | // always return false, because we've set mGroup when we called addObject |
| 2258 | return false; |
| 2259 | } |
| 2260 | |
| 2261 | //----------------------------------------------------------------------------- |
| 2262 |
nothing calls this directly
no test coverage detected