diff --git a/src/nostalgia/core/studio/tilesheeteditormodel.cpp b/src/nostalgia/core/studio/tilesheeteditormodel.cpp index 44545206..399b7d5f 100644 --- a/src/nostalgia/core/studio/tilesheeteditormodel.cpp +++ b/src/nostalgia/core/studio/tilesheeteditormodel.cpp @@ -3,7 +3,6 @@ */ #include -#include #include #include @@ -35,6 +34,7 @@ class TileSheetClipboard: public ClipboardObject { m_pixels.emplace_back(colorIdx, pt); } + [[nodiscard]] constexpr const ox::Vector &pixels() const noexcept { return m_pixels; } @@ -89,7 +89,7 @@ class DrawCommand: public studio::UndoCommand { m_palIdx = palIdx; } - constexpr DrawCommand(TileSheet *img, const TileSheet::SubSheetIdx &subSheetIdx, ox::Vector idxList, int palIdx) noexcept { + constexpr DrawCommand(TileSheet *img, const TileSheet::SubSheetIdx &subSheetIdx, const ox::Vector &idxList, int palIdx) noexcept { m_img = img; auto &subsheet = m_img->getSubSheet(subSheetIdx); m_subSheetIdx = subSheetIdx; @@ -115,7 +115,7 @@ class DrawCommand: public studio::UndoCommand { return false; } - constexpr auto append(ox::Vector idxList) noexcept { + constexpr auto append(const ox::Vector &idxList) noexcept { auto out = false; for (auto idx : idxList) { out = append(idx) || out;