From f34a09351f10f651560094dfd1852d023d80cfbc Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 4 Feb 2022 00:06:07 -0600 Subject: [PATCH] [nostalgia/core/studio] Add some missing nodiscards --- src/nostalgia/core/studio/tilesheetpixelgrid.hpp | 1 + src/nostalgia/core/studio/tilesheetpixels.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/core/studio/tilesheetpixelgrid.hpp b/src/nostalgia/core/studio/tilesheetpixelgrid.hpp index 1f716d50..bffaa0ca 100644 --- a/src/nostalgia/core/studio/tilesheetpixelgrid.hpp +++ b/src/nostalgia/core/studio/tilesheetpixelgrid.hpp @@ -76,6 +76,7 @@ class TileSheetGrid { void setBufferObjects(const NostalgiaGraphic &img, glutils::BufferSet *bg) noexcept; + [[nodiscard]] class ImVec2 pixelSize() const noexcept; }; diff --git a/src/nostalgia/core/studio/tilesheetpixels.hpp b/src/nostalgia/core/studio/tilesheetpixels.hpp index 4b052ea2..fe7ad09d 100644 --- a/src/nostalgia/core/studio/tilesheetpixels.hpp +++ b/src/nostalgia/core/studio/tilesheetpixels.hpp @@ -55,7 +55,8 @@ class TileSheetPixels { void setBufferObjects(const NostalgiaGraphic &img, const NostalgiaPalette &pal, glutils::BufferSet *bg) noexcept; - class ImVec2 pixelSize() const noexcept; + [[nodiscard]] + ImVec2 pixelSize() const noexcept; };