From 23fb414fd436de4eab7b9d1b4a0585e92227eaac Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Thu, 7 Aug 2025 17:18:53 +0200 Subject: [PATCH] use std::string_view instead --- apps/openmw/mwgui/controllerbuttonsoverlay.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/controllerbuttonsoverlay.hpp b/apps/openmw/mwgui/controllerbuttonsoverlay.hpp index 567e49c042..5d451e4056 100644 --- a/apps/openmw/mwgui/controllerbuttonsoverlay.hpp +++ b/apps/openmw/mwgui/controllerbuttonsoverlay.hpp @@ -2,6 +2,7 @@ #define MWGUI_CONTROLLERBUTTONSOVERLAY_H #include +#include #include #include @@ -49,7 +50,7 @@ namespace MWGui struct ButtonDefinition { Button mButton; - const char* mName; + std::string_view mName; InputType mInputType; union {