From d22c968561afdf42953dca46f3f7e47c0b077450 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 10 Dec 2023 17:13:23 -0600 Subject: [PATCH] [nostalgia/core/studio] String hygiene change --- .../core/src/studio/tilesheeteditor/tilesheeteditormodel.cpp | 2 +- .../core/src/studio/tilesheeteditor/tilesheeteditormodel.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.cpp b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.cpp index 576d4b8c..d9b0daa5 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.cpp +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.cpp @@ -107,7 +107,7 @@ ox::StringView TileSheetEditorModel::palPath() const noexcept { } } -ox::Error TileSheetEditorModel::setPalette(ox::String const&path) noexcept { +ox::Error TileSheetEditorModel::setPalette(ox::StringView path) noexcept { oxRequire(uuid, keelCtx(m_ctx).pathToUuid.at(path)); pushCommand(ox::make(activeSubSheetIdx(), m_img, uuid->toString())); return {}; diff --git a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.hpp b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.hpp index c8d500d8..69643a01 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.hpp +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditormodel.hpp @@ -59,7 +59,7 @@ class TileSheetEditorModel: public ox::SignalHandler { [[nodiscard]] ox::StringView palPath() const noexcept; - ox::Error setPalette(const ox::String &path) noexcept; + ox::Error setPalette(ox::StringView path) noexcept; void drawCommand(const ox::Point &pt, std::size_t palIdx) noexcept;