From 667dd21a054c98ed399ba2d61a35002cbcf905a0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 28 May 2024 23:39:02 -0500 Subject: [PATCH] [turbine] Make ClipboardObject::typId return a StringView --- src/olympic/turbine/include/turbine/clipboard.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/olympic/turbine/include/turbine/clipboard.hpp b/src/olympic/turbine/include/turbine/clipboard.hpp index 2c4a214f..1fd747ac 100644 --- a/src/olympic/turbine/include/turbine/clipboard.hpp +++ b/src/olympic/turbine/include/turbine/clipboard.hpp @@ -17,7 +17,7 @@ class BaseClipboardObject { virtual ~BaseClipboardObject() noexcept = default; [[nodiscard]] - virtual ox::String typeId() const noexcept = 0; + virtual ox::StringView typeId() const noexcept = 0; [[nodiscard]] constexpr auto typeMatch(ox::StringView typeId) const noexcept { @@ -28,8 +28,8 @@ class BaseClipboardObject { template class ClipboardObject: public BaseClipboardObject { [[nodiscard]] - ox::String typeId() const noexcept final { - return ox::String(ox::ModelTypeId_v); + ox::StringView typeId() const noexcept final { + return ox::ModelTypeId_v; } };