| 135 | } |
| 136 | |
| 137 | AbstractType::Ptr TypeRepository::typeForIndex(uint index) |
| 138 | { |
| 139 | if (index == 0) |
| 140 | return AbstractType::Ptr(); |
| 141 | |
| 142 | return LockedItemRepository::read<AbstractType>([index](const TypeItemRepository& repo) { |
| 143 | auto item = repo.itemFromIndex(index); |
| 144 | return AbstractType::Ptr(TypeSystem::self().create(const_cast<AbstractTypeData*>(item))); |
| 145 | }); |
| 146 | } |
| 147 | |
| 148 | template <typename RefCountChanger> |
| 149 | static void changeReferenceCount(uint index, RefCountChanger changeRefCount) |
nothing calls this directly
no test coverage detected