| 161 | } |
| 162 | |
| 163 | void SimDataBlock::copySubstitutionsFrom(SimDataBlock* other) |
| 164 | { |
| 165 | clear_substitutions(); |
| 166 | if (!other) |
| 167 | return; |
| 168 | |
| 169 | for (S32 i = 0; i < other->substitutions.size(); i++) |
| 170 | { |
| 171 | if (other->substitutions[i]) |
| 172 | { |
| 173 | SubstitutionStatement* subs = other->substitutions[i]; |
| 174 | substitutions.push_back(new SubstitutionStatement(subs->mSlot, subs->mIdx, subs->mValue)); |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | |
| 180 | // This is the method that evaluates any substitution statements on a datablock and does the |
no test coverage detected