| 150 | } |
| 151 | |
| 152 | const CreditSource* |
| 153 | CreditSystem::getCreditSource(Credit credit) const noexcept { |
| 154 | if (credit._id < this->_credits.size() && |
| 155 | credit._generation == this->_credits[credit._id].generation) { |
| 156 | return this->_credits[credit._id].pSource; |
| 157 | } |
| 158 | return nullptr; |
| 159 | } |
| 160 | |
| 161 | bool CreditSystem::addCreditReference(Credit credit) { |
| 162 | CreditRecord& record = this->_credits[credit._id]; |
no test coverage detected