String view instead of string for get_name
This commit is contained in:
parent
d8147733de
commit
f2c8339c3f
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#define POC2DMODULAR_BASIC_DATA_HPP
|
||||
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace data {
|
||||
class BasicData {
|
||||
|
|
@ -19,7 +19,7 @@ namespace data {
|
|||
|
||||
virtual void window_size(int width, int height) = 0;
|
||||
|
||||
[[nodiscard]] virtual const std::string &get_name() const noexcept = 0;
|
||||
[[nodiscard]] virtual std::string_view get_name() const noexcept = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue