summaryrefslogtreecommitdiff
path: root/src/utils/sha256.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-08-19 16:55:29 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-08-19 17:34:55 +0200
commit109b602701578b9f2b29282f84bf2757544f8d32 (patch)
treea2fd70556c86385a75bfb7651e865beb0a05fd37 /src/utils/sha256.cpp
parent6c6090991e17276de09f5f82d2fc8a6c1adf5bf4 (diff)
downloadmanaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.gz
manaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.bz2
manaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.xz
manaserv-109b602701578b9f2b29282f84bf2757544f8d32.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
Diffstat (limited to 'src/utils/sha256.cpp')
-rw-r--r--src/utils/sha256.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp
index 102171e9..f9ea3fa1 100644
--- a/src/utils/sha256.cpp
+++ b/src/utils/sha256.cpp
@@ -77,8 +77,8 @@
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
-typedef unsigned char uint8_t;
-typedef unsigned int uint32_t;
+using uint8_t = unsigned char;
+using uint32_t = unsigned int;
#endif
#define SHA256_BLOCK_SIZE (512 / 8)