[turbine] Make ClipboardObject::typId return a StringView
This commit is contained in:
parent
5d89370cb0
commit
667dd21a05
@ -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<typename T>
|
||||
class ClipboardObject: public BaseClipboardObject {
|
||||
[[nodiscard]]
|
||||
ox::String typeId() const noexcept final {
|
||||
return ox::String(ox::ModelTypeId_v<T>);
|
||||
ox::StringView typeId() const noexcept final {
|
||||
return ox::ModelTypeId_v<T>;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user