| 2101 | //----------------------------------------------------------------------------- |
| 2102 | |
| 2103 | bool SimObject::setProtectedParent( void *obj, const char *index, const char *data ) |
| 2104 | { |
| 2105 | SimGroup *parent = NULL; |
| 2106 | SimObject *object = static_cast<SimObject*>(obj); |
| 2107 | |
| 2108 | if(Sim::findObject(data, parent)) |
| 2109 | parent->addObject(object); |
| 2110 | |
| 2111 | // always return false, because we've set mGroup when we called addObject |
| 2112 | return false; |
| 2113 | } |
| 2114 | |
| 2115 | //----------------------------------------------------------------------------- |
| 2116 |
nothing calls this directly
no test coverage detected