diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-25 10:39:53 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-25 10:39:53 +0200 |
| commit | dd88c0084133d296a42b62c745874b75e4503e70 (patch) | |
| tree | 4730b6f9753c7ee5676faf048858576ae5ccf32f | |
| parent | aesxx/block: refactoring (diff) | |
| download | aes-tools-dd88c0084133d296a42b62c745874b75e4503e70.tar.gz aes-tools-dd88c0084133d296a42b62c745874b75e4503e70.zip | |
aesxx: typedef -> using
| -rw-r--r-- | aesxx/include/aesxx/algorithm.hpp | 2 | ||||
| -rw-r--r-- | aesxx/include/aesxx/mode.hpp | 2 | ||||
| -rw-r--r-- | 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<std::streamoff>::type unsigned_streamoff; + using unsigned_streamoff = std::make_unsigned<std::streamoff>::type; if (static_cast<unsigned_streamoff>(size) > std::numeric_limits<std::size_t>::max()) throw std::range_error{"file::cast_to_size_t: this file is too large"}; return static_cast<std::size_t>(size); |
