event/*: use using
instead of typedef
This commit is contained in:
parent
ddd9f20a0b
commit
a8e70f18fd
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user