From f2c8339c3f745d6b12621651f491cc0c53af272d Mon Sep 17 00:00:00 2001 From: Pcornat Date: Sat, 10 Jan 2026 15:31:33 +0100 Subject: [PATCH] String view instead of string for get_name --- include/basic_data.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/basic_data.hpp b/include/basic_data.hpp index 502bc22..6802774 100644 --- a/include/basic_data.hpp +++ b/include/basic_data.hpp @@ -2,7 +2,7 @@ #define POC2DMODULAR_BASIC_DATA_HPP -#include +#include 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; }; }