diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 20:46:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 20:46:41 +0200 |
commit | 1361d7d36aca930f621ac1f5a68aae515eb6a28d (patch) | |
tree | be2e2e4e33ad54b5487627309c2d60a71da53e92 /editor/vobj-editor.cpp | |
parent | 339291fc674e6c021b1a1ae4aa63c6c4c73c5569 (diff) |
remove last <memory> usages
Diffstat (limited to 'editor/vobj-editor.cpp')
-rw-r--r-- | editor/vobj-editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index cab9c0e1..6dc8c907 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -128,13 +128,13 @@ bptr<object> hole_factory::make(world& w, object_id id, global_coords pos) const auto vobj_editor::make_vobj_type_map() -> std::map<String, vobj_> { - constexpr auto add = [](auto& m, std::unique_ptr<vobj_factory>&& x) { + constexpr auto add = [](auto& m, Pointer<vobj_factory>&& x) { StringView name = x->name(), descr = x->descr(); m[name] = vobj_editor::vobj_{ name, descr, move(x) }; }; std::map<String, vobj_> map; - add(map, std::make_unique<light_factory>()); - add(map, std::make_unique<hole_factory>()); + add(map, Pointer<light_factory>{InPlace}); + add(map, Pointer<hole_factory>{InPlace}); return map; } |