diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 22:11:38 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 22:11:38 +0200 |
| commit | f99b38476062c1df90c1fe3e828e29cfc193a5f3 (patch) | |
| tree | 806e9ba32a91ba1910ac99aa57e5c8fcabb54fbd /test/unit_tests/shared/command.hpp | |
| parent | upgrade winapi-utf8 (diff) | |
| download | winapi-common-f99b38476062c1df90c1fe3e828e29cfc193a5f3.tar.gz winapi-common-f99b38476062c1df90c1fe3e828e29cfc193a5f3.zip | |
upgrade to `using` instead of typedef
Diffstat (limited to 'test/unit_tests/shared/command.hpp')
| -rw-r--r-- | test/unit_tests/shared/command.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit_tests/shared/command.hpp b/test/unit_tests/shared/command.hpp index 4ba9385..a24370a 100644 --- a/test/unit_tests/shared/command.hpp +++ b/test/unit_tests/shared/command.hpp @@ -52,15 +52,15 @@ public: fixed_size::StringList<> console_buffer; }; - typedef winapi::SharedObject<Command> Shared; + using Shared = winapi::SharedObject<Command>; - typedef boost::interprocess::interprocess_mutex mutex; - typedef boost::interprocess::interprocess_condition condition_variable; - typedef boost::interprocess::scoped_lock<mutex> lock; + using mutex = boost::interprocess::interprocess_mutex; + using condition_variable = boost::interprocess::interprocess_condition; + using lock = boost::interprocess::scoped_lock<mutex>; - typedef std::function<void(Args&)> SetArgs; - typedef std::function<void(const Result&)> ReadResult; - typedef std::function<void(Action, const Args&, Result&)> ProcessAction; + using SetArgs = std::function<void(Args&)>; + using ReadResult = std::function<void(const Result&)>; + using ProcessAction = std::function<void(Action, const Args&, Result&)>; static Shared create() { return Shared::create(COMMAND_SHMEM_NAME); } static Shared open() { return Shared::open(COMMAND_SHMEM_NAME); } |
