1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Also deploys make_unique/shared to avoid type repetition.

This commit is contained in:
Thomas Harte
2019-12-21 23:52:04 -05:00
parent e9318efeb6
commit 05d77d3297
22 changed files with 63 additions and 92 deletions
+1 -2
View File
@@ -409,8 +409,7 @@ class ConcreteMachine:
}
void type_string(const std::string &string) override final {
std::unique_ptr<CharacterMapper> mapper(new CharacterMapper());
Utility::TypeRecipient::add_typer(string, std::move(mapper));
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
}
KeyboardMapper *get_keyboard_mapper() override {