summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-05-18 04:38:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-05-18 04:38:06 +0200
commit3eed6f633605c308547c73ddd232c0081842247a (patch)
treec4c8d886f94f7e6bc1fc194365df9b1c708f3272
parent1d0a3cb3c1cfab132e7c1acd5702705f2ca1f36d (diff)
a
-rw-r--r--editor/vobj-editor.cpp2
-rw-r--r--editor/vobj-editor.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp
index 82b36204..1c1f1cb3 100644
--- a/editor/vobj-editor.cpp
+++ b/editor/vobj-editor.cpp
@@ -23,7 +23,7 @@ vobj_editor::vobj_::operator bool() const { return factory != nullptr; }
vobj_editor::vobj_editor() = default;
void vobj_editor::select_tile(const vobj_& type) { _selected = &type; }
-auto vobj_editor::get_type(StringView name) -> const vobj_&
+auto vobj_editor::get_type(StringView name) -> const vobj_*
{
auto it = _types.find(name);
if (it != _types.cend())
diff --git a/editor/vobj-editor.hpp b/editor/vobj-editor.hpp
index cbe2ffb4..44688168 100644
--- a/editor/vobj-editor.hpp
+++ b/editor/vobj-editor.hpp
@@ -51,7 +51,7 @@ struct vobj_editor final
void select_tile(const vobj_& type);
void clear_selection();
- static const vobj_& get_type(StringView name);
+ static const vobj_* get_type(StringView name);
bool is_item_selected(const vobj_& x) const;
bool is_anything_selected() const;