basic_data.hpp is now a real interface.
This commit is contained in:
parent
d5a06ce1ab
commit
48fc8faa1a
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ namespace data {
|
|||
|
||||
virtual void window_size(int width, int height) = 0;
|
||||
|
||||
[[nodiscard]] virtual std::string get_name() const noexcept = 0;
|
||||
[[nodiscard]] virtual const std::string &get_name() const noexcept = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ namespace gui {
|
|||
}
|
||||
|
||||
void Window::add_module(data::BasicData &module) {
|
||||
modules.emplace(module.name, &module);
|
||||
modules.emplace(module.get_name(), &module);
|
||||
}
|
||||
|
||||
void Window::delete_module(const std::string &module) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue