summaryrefslogtreecommitdiffhomepage
path: root/editor/vobj-editor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/vobj-editor.hpp')
-rw-r--r--editor/vobj-editor.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/editor/vobj-editor.hpp b/editor/vobj-editor.hpp
index 7bcc32b6..0057504c 100644
--- a/editor/vobj-editor.hpp
+++ b/editor/vobj-editor.hpp
@@ -3,7 +3,7 @@
#include "src/object-id.hpp"
#include <memory>
#include <map>
-#include <Corrade/Containers/StringView.h>
+#include <cr/String.h>
namespace floormat {
@@ -31,10 +31,9 @@ class vobj_editor final
{
public:
struct vobj_ final {
- StringView name, descr;
+ String name, descr;
std::unique_ptr<vobj_factory> factory;
};
-
vobj_editor();
void select_tile(const vobj_& type);
@@ -53,9 +52,9 @@ public:
auto end() const noexcept { return _types.cend(); }
private:
- static std::map<StringView, vobj_> make_vobj_type_map();
+ static std::map<String, vobj_> make_vobj_type_map();
- std::map<StringView, vobj_> _types = make_vobj_type_map();
+ std::map<String, vobj_> _types = make_vobj_type_map();
const vobj_* _selected = nullptr;
};