mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Userland: Change typedef to using directive
Problem: - `typedef`s are read backwards making it confusing. - `using` statements can be used in template aliases. - `using` provides similarity to most other C++ syntax. - C++ core guidelines say to prefer `using` over `typedef`: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rt-using Solution: - Switch these where appropriate.
This commit is contained in:
parent
800ea8ea96
commit
68f76b9e37
6 changed files with 6 additions and 7 deletions
|
@ -25,7 +25,7 @@
|
|||
// An NtpTimestamp is a 64-bit integer that's a 32.32 binary-fixed point number.
|
||||
// The integral part in the upper 32 bits represents seconds since 1900-01-01.
|
||||
// The fractional part in the lower 32 bits stores fractional bits times 2 ** 32.
|
||||
typedef uint64_t NtpTimestamp;
|
||||
using NtpTimestamp = uint64_t;
|
||||
|
||||
struct [[gnu::packed]] NtpPacket {
|
||||
uint8_t li_vn_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue