| 2261 | //----------------------------------------------------------------------------- |
| 2262 | |
| 2263 | bool SimObject::setProtectedName(void *obj, const char *index, const char *data) |
| 2264 | { |
| 2265 | if (preventNameChanging) |
| 2266 | return false; |
| 2267 | SimObject* object = static_cast<SimObject*>(obj); |
| 2268 | |
| 2269 | if (object->isProperlyAdded()) |
| 2270 | object->assignName(data); |
| 2271 | |
| 2272 | // always return false because we assign the name here |
| 2273 | return false; |
| 2274 | } |
| 2275 | |
| 2276 | //----------------------------------------------------------------------------- |
| 2277 |
nothing calls this directly
no test coverage detected