diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-04 11:02:38 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-05 09:48:43 +0100 |
commit | 9d1b27263f056ae40a573dcae73d2f8cf3fefe00 (patch) | |
tree | c80bc47ff382d907c4e9a2474877cdfe6b58f08e /Kernel/Devices | |
parent | 7463eb52e83578393e4f93425199560e2fde6819 (diff) | |
download | serenity-9d1b27263f056ae40a573dcae73d2f8cf3fefe00.zip |
Kernel: Declare type aliases with "using" instead of "typedef"
This is the idiomatic way to declare type aliases in modern C++.
Flagged by Sonar Cloud as a "Code Smell", but I happen to agree
with this particular one. :^)
Diffstat (limited to 'Kernel/Devices')
-rw-r--r-- | Kernel/Devices/AsyncDeviceRequest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/AsyncDeviceRequest.h b/Kernel/Devices/AsyncDeviceRequest.h index 5d7746c6df..07e581fb1f 100644 --- a/Kernel/Devices/AsyncDeviceRequest.h +++ b/Kernel/Devices/AsyncDeviceRequest.h @@ -143,7 +143,7 @@ private: RequestResult m_result { Pending }; IntrusiveListNode<AsyncDeviceRequest, RefPtr<AsyncDeviceRequest>> m_list_node; - typedef IntrusiveList<AsyncDeviceRequest, RefPtr<AsyncDeviceRequest>, &AsyncDeviceRequest::m_list_node> AsyncDeviceSubRequestList; + using AsyncDeviceSubRequestList = IntrusiveList<AsyncDeviceRequest, RefPtr<AsyncDeviceRequest>, &AsyncDeviceRequest::m_list_node>; AsyncDeviceSubRequestList m_sub_requests_pending; AsyncDeviceSubRequestList m_sub_requests_complete; |