diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 19:24:19 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 19:24:19 +0100 |
| commit | 4ccf81d1c5a9debeae2b77ca3ec9416fd9414704 (patch) | |
| tree | a952679c1b1f2b1a464f42dc55db0d4314bc7060 | |
| parent | d16f7d76f149b34d0bcf6c30e61e995e6b49951d (diff) | |
editor: less malloc
| -rw-r--r-- | editor/editor.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor.hpp b/editor/editor.hpp index d9d4d386..62027d8d 100644 --- a/editor/editor.hpp +++ b/editor/editor.hpp @@ -51,8 +51,8 @@ private: snap_mode get_snap_value(snap_mode snap, int mods) const; static global_coords apply_snap(global_coords pos, global_coords last, snap_mode snap) noexcept; - tile_editor _floor{ editor_mode::floor, "floor" }; - tile_editor _wall { editor_mode::walls, "wall" }; + tile_editor _floor{ editor_mode::floor, "floor"_s }; + tile_editor _wall { editor_mode::walls, "wall"_s }; scenery_editor _scenery; struct drag_pos final { |
