1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +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_) {
typer_->append(string);
} else {
std::unique_ptr<CharacterMapper> mapper(new CharacterMapper());
Utility::TypeRecipient::add_typer(string, std::move(mapper));
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
}
}