From 6b0e2a25cf1e98d3f11d4e6c0305dd327048bbb8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 27 Jun 2022 22:08:43 +0200 Subject: refactor: use int types from std namespace --- src/engine/data/bounds.hpp | 6 +++--- src/engine/data/style.hpp | 8 ++++---- src/engine/data/vector2.hpp | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/engine/data') diff --git a/src/engine/data/bounds.hpp b/src/engine/data/bounds.hpp index 731db5c..b122489 100644 --- a/src/engine/data/bounds.hpp +++ b/src/engine/data/bounds.hpp @@ -15,14 +15,14 @@ enum CoordsValidation struct BoundsOptions { - uint32_t width; - uint32_t height; + std::uint32_t width; + std::uint32_t height; }; class Bounds { public: - using Value = uint32_t; + using Value = std::uint32_t; explicit Bounds(const BoundsOptions &options) noexcept; diff --git a/src/engine/data/style.hpp b/src/engine/data/style.hpp index 50c1faa..6cb3fbd 100644 --- a/src/engine/data/style.hpp +++ b/src/engine/data/style.hpp @@ -7,14 +7,14 @@ class Style { public: // Colors - std::optional fg_color{}; - std::optional bg_color{}; + std::optional fg_color{}; + std::optional bg_color{}; // Toggles bool bold = false; bool reset_before = false; // Spacing - uint32_t padding_left = 0U; - uint32_t padding_right = 0U; + std::uint32_t padding_left = 0U; + std::uint32_t padding_right = 0U; }; diff --git a/src/engine/data/vector2.hpp b/src/engine/data/vector2.hpp index 96ebf87..b83e924 100644 --- a/src/engine/data/vector2.hpp +++ b/src/engine/data/vector2.hpp @@ -5,8 +5,8 @@ struct Vector2Options { - int32_t x; - int32_t y; + std::int32_t x; + std::int32_t y; }; /** @@ -15,7 +15,7 @@ struct Vector2Options class Vector2 { public: - using Value = int32_t; + using Value = std::int32_t; constexpr explicit Vector2(const Vector2Options &options) noexcept : _x(options.x), _y(options.y) -- cgit v1.2.3-18-g5258