aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--aesxx/include/aesxx/algorithm.hpp2
-rw-r--r--aesxx/include/aesxx/mode.hpp2
-rw-r--r--aesxx/utils/helpers/file.hpp2
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);