From dd88c0084133d296a42b62c745874b75e4503e70 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 25 Jul 2026 10:39:53 +0200 Subject: aesxx: typedef -> using --- aesxx/include/aesxx/algorithm.hpp | 2 +- aesxx/include/aesxx/mode.hpp | 2 +- aesxx/utils/helpers/file.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aesxx/include/aesxx/algorithm.hpp b/aesxx/include/aesxx/algorithm.hpp index 7057942..fdd0942 100644 --- a/aesxx/include/aesxx/algorithm.hpp +++ b/aesxx/include/aesxx/algorithm.hpp @@ -9,6 +9,6 @@ namespace aes { -typedef AES_Algorithm Algorithm; +using Algorithm = AES_Algorithm; } diff --git a/aesxx/include/aesxx/mode.hpp b/aesxx/include/aesxx/mode.hpp index 8685e16..870d09f 100644 --- a/aesxx/include/aesxx/mode.hpp +++ b/aesxx/include/aesxx/mode.hpp @@ -9,6 +9,6 @@ namespace aes { -typedef AES_Mode Mode; +using Mode = AES_Mode; } // namespace aes diff --git a/aesxx/utils/helpers/file.hpp b/aesxx/utils/helpers/file.hpp index 5840de8..dee0f62 100644 --- a/aesxx/utils/helpers/file.hpp +++ b/aesxx/utils/helpers/file.hpp @@ -17,7 +17,7 @@ namespace file { inline std::size_t cast_to_size_t(std::streamoff size) { if (size < 0) throw std::range_error{"file::cast_to_size_t: something went really wrong"}; - typedef std::make_unsigned::type unsigned_streamoff; + using unsigned_streamoff = std::make_unsigned::type; if (static_cast(size) > std::numeric_limits::max()) throw std::range_error{"file::cast_to_size_t: this file is too large"}; return static_cast(size); -- cgit v1.3