[nostalgia/core/studio] String hygiene change

This commit is contained in:
Gary Talent 2023-12-10 17:13:23 -06:00
parent 79c85c2a33
commit d22c968561
2 changed files with 2 additions and 2 deletions

View File

@ -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)); oxRequire(uuid, keelCtx(m_ctx).pathToUuid.at(path));
pushCommand(ox::make<PaletteChangeCommand>(activeSubSheetIdx(), m_img, uuid->toString())); pushCommand(ox::make<PaletteChangeCommand>(activeSubSheetIdx(), m_img, uuid->toString()));
return {}; return {};

View File

@ -59,7 +59,7 @@ class TileSheetEditorModel: public ox::SignalHandler {
[[nodiscard]] [[nodiscard]]
ox::StringView palPath() const noexcept; 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; void drawCommand(const ox::Point &pt, std::size_t palIdx) noexcept;