aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-04 22:11:38 +0200
committerEgor Tensin <egor@tensin.name>2026-06-04 22:11:38 +0200
commitf99b38476062c1df90c1fe3e828e29cfc193a5f3 (patch)
tree806e9ba32a91ba1910ac99aa57e5c8fcabb54fbd /include/winapi
parentupgrade winapi-utf8 (diff)
downloadwinapi-common-f99b38476062c1df90c1fe3e828e29cfc193a5f3.tar.gz
winapi-common-f99b38476062c1df90c1fe3e828e29cfc193a5f3.zip
upgrade to `using` instead of typedef
Diffstat (limited to '')
-rw-r--r--include/winapi/buffer.hpp2
-rw-r--r--include/winapi/shmem.hpp2
-rw-r--r--include/winapi/sid.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/winapi/buffer.hpp b/include/winapi/buffer.hpp
index 10ff479..a9243cb 100644
--- a/include/winapi/buffer.hpp
+++ b/include/winapi/buffer.hpp
@@ -23,7 +23,7 @@ namespace winapi {
*/
class Buffer : public std::vector<unsigned char> {
public:
- typedef std::vector<unsigned char> Parent;
+ using Parent = std::vector<unsigned char>;
Buffer() = default;
diff --git a/include/winapi/shmem.hpp b/include/winapi/shmem.hpp
index d1ad997..4040241 100644
--- a/include/winapi/shmem.hpp
+++ b/include/winapi/shmem.hpp
@@ -52,7 +52,7 @@ private:
template <typename T>
class SharedObject {
public:
- typedef typename std::aligned_storage<sizeof(T), __alignof(T)>::type AlignedType;
+ using AlignedType = std::aligned_storage<sizeof(T), __alignof(T)>::type;
/**
* Create the object & construct a shared memory region to store it.
diff --git a/include/winapi/sid.hpp b/include/winapi/sid.hpp
index 5a7c759..ab8c62c 100644
--- a/include/winapi/sid.hpp
+++ b/include/winapi/sid.hpp
@@ -18,7 +18,7 @@ class Sid {
public:
static constexpr std::size_t MAX_SID_SIZE = SECURITY_MAX_SID_SIZE;
- typedef SID Impl;
+ using Impl = SID;
static Sid well_known(WELL_KNOWN_SID_TYPE type);