| 546 | } |
| 547 | |
| 548 | void Cc4Block::Reference(uint16_t index, const std::string& text) { |
| 549 | while (index >= ref_list_.size()) { |
| 550 | auto temp = std::make_unique<Tx4Block>(); |
| 551 | ref_list_.emplace_back(std::move(temp)); |
| 552 | } |
| 553 | auto* tx4 = dynamic_cast<Tx4Block*>(ref_list_.back().get()); |
| 554 | if (tx4 != nullptr) { |
| 555 | tx4->Text(text); |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | std::string Cc4Block::Reference(uint16_t index) const { |
| 560 | const auto* block = index < ref_list_.size() ? |