Use std::string when setting Window title instead of std::string_view

This commit is contained in:
jayden authored and jayden committed 2025-09-07 02:21:45 +10:00
1 parent 829a00bab8
commit ba30cc49d5
3 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@
#include <nova/render/render_structs.h>
#include <nova/types.h>
#include <string_view>
#include <string>
namespace Nova {
class RenderDriver;
@@ -30,10 +30,10 @@ namespace Nova {
virtual void beep() = 0;
virtual u32 get_window_count() const = 0;
[[nodiscard]] virtual WindowID create_window(std::string_view title, u32 width, u32 height) = 0;
[[nodiscard]] virtual WindowID create_window(const std::string& title, u32 width, u32 height) = 0;
virtual void destroy_window(WindowID window) = 0;
virtual void set_window_title(WindowID window, std::string_view title) = 0;
virtual void set_window_title(WindowID window, const std::string& title) = 0;
virtual void set_window_size(WindowID window, u32 width, u32 height) = 0;
virtual void set_window_position(WindowID window, i32 x, i32 y) = 0;