1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Slightly improves syntax.

This commit is contained in:
Thomas Harte 2020-02-29 18:52:12 -05:00
parent 346d80e30b
commit 99229df017

View File

@ -1083,8 +1083,7 @@ template <bool has_fdc> class ConcreteMachine:
if(typer_) { if(typer_) {
typer_->append(string); typer_->append(string);
} else { } else {
std::unique_ptr<CharacterMapper> mapper(new CharacterMapper()); Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
Utility::TypeRecipient::add_typer(string, std::move(mapper));
} }
} }