From 4ccf81d1c5a9debeae2b77ca3ec9416fd9414704 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 19:24:19 +0100 Subject: editor: less malloc --- editor/editor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor') 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 { -- cgit v1.2.3