summaryrefslogtreecommitdiff
path: root/src/helpers/Format.hpp
diff options
context:
space:
mode:
authorKamikadze <40305144+Kam1k4dze@users.noreply.github.com>2025-05-31 18:02:02 +0500
committerGitHub <noreply@github.com>2025-05-31 14:02:02 +0100
commit4078e1d17c0fb1439ee5a0ba1e539f06a8f47aab (patch)
tree33a5bed332c5ce217b9e885f56e07c9e732b35fa /src/helpers/Format.hpp
parentaf2fdb5d58f5d3017aafd78a8ddafb40f710e34b (diff)
refactor: replace all `typedef` with `using` (#10594)
Diffstat (limited to 'src/helpers/Format.hpp')
-rw-r--r--src/helpers/Format.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/Format.hpp b/src/helpers/Format.hpp
index b1353dc7..fe68f763 100644
--- a/src/helpers/Format.hpp
+++ b/src/helpers/Format.hpp
@@ -5,8 +5,8 @@
#include "math/Math.hpp"
#include <aquamarine/backend/Misc.hpp>
-typedef uint32_t DRMFormat;
-typedef uint32_t SHMFormat;
+using DRMFormat = uint32_t;
+using SHMFormat = uint32_t;
struct SPixelFormat {
DRMFormat drmFormat = 0; /* DRM_FORMAT_INVALID */
@@ -20,7 +20,7 @@ struct SPixelFormat {
Vector2D blockSize;
};
-typedef Aquamarine::SDRMFormat SDRMFormat;
+using SDRMFormat = Aquamarine::SDRMFormat;
namespace NFormatUtils {
SHMFormat drmToShm(DRMFormat drm);