From 0852be322a9e584bf085174aabb8374ffbbfa694 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 1 Jan 2024 19:47:44 +0000 Subject: nodiscard in Asset factory mutation --- assetFactory/mutation.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'assetFactory') diff --git a/assetFactory/mutation.h b/assetFactory/mutation.h index b571dea..20fe440 100644 --- a/assetFactory/mutation.h +++ b/assetFactory/mutation.h @@ -8,11 +8,10 @@ struct Mutation { using Matrix = glm::mat4; - Matrix getMatrix() const; - Matrix getDeformationMatrix() const; - Matrix getLocationMatrix() const; - - float relativeLevelOfDetail() const; + [[nodiscard]] Matrix getMatrix() const; + [[nodiscard]] Matrix getDeformationMatrix() const; + [[nodiscard]] Matrix getLocationMatrix() const; + [[nodiscard]] float relativeLevelOfDetail() const; Position3D position {}; Rotation3D rotation {}; -- cgit v1.2.3