event/*: use `using` instead of `typedef`

This commit is contained in:
Max Kellermann 2021-02-05 17:53:11 +01:00
parent ddd9f20a0b
commit a8e70f18fd
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
class MaskMonitor final {
InjectEvent event;
typedef BoundMethod<void(unsigned) noexcept> Callback;
using Callback = BoundMethod<void(unsigned) noexcept>;
const Callback callback;
std::atomic_uint pending_mask;

View File

@ -26,7 +26,7 @@ class EventLoop;
#include "util/BindMethod.hxx"
typedef BoundMethod<void() noexcept> SignalHandler;
using SignalHandler = BoundMethod<void() noexcept>;
/**
* Initialise the signal monitor subsystem.

View File

@ -75,7 +75,7 @@ public:
*/
static constexpr unsigned IMPLICIT_FLAGS = ERROR|HANGUP;
typedef std::make_signed<size_t>::type ssize_t;
using ssize_t = std::make_signed<size_t>::type;
SocketEvent(EventLoop &_loop, Callback _callback,
SocketDescriptor _fd=SocketDescriptor::Undefined()) noexcept