From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/engine/data/bounds.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/engine/data/bounds.hpp') diff --git a/src/engine/data/bounds.hpp b/src/engine/data/bounds.hpp index ccea2c3..5444503 100644 --- a/src/engine/data/bounds.hpp +++ b/src/engine/data/bounds.hpp @@ -26,21 +26,21 @@ public: explicit Bounds(const BoundsOptions &options) noexcept; - [[nodiscard]] Value get_width() const noexcept; + [[nodiscard]] auto get_width() const noexcept -> Value; void set_width(Value width) noexcept; - [[nodiscard]] Value get_height() const noexcept; + [[nodiscard]] auto get_height() const noexcept -> Value; void set_height(Value height) noexcept; - [[nodiscard]] CoordsValidation validate_coords(const Vector2 &coords) const noexcept; + [[nodiscard]] auto validate_coords(const Vector2 &coords) const noexcept -> CoordsValidation; - const Bounds &operator*=(const Bounds &rhs) noexcept; - const Bounds &operator+=(const Bounds &rhs) noexcept; - const Bounds &operator-=(const Bounds &rhs) noexcept; + auto operator*=(const Bounds &rhs) noexcept -> const Bounds &; + auto operator+=(const Bounds &rhs) noexcept -> const Bounds &; + auto operator-=(const Bounds &rhs) noexcept -> const Bounds &; - Bounds operator-(const Bounds &rhs) const noexcept; + auto operator-(const Bounds &rhs) const noexcept -> Bounds; private: Value _width = 0U; -- cgit v1.2.3-18-g5258