mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +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
|
@ -332,7 +332,7 @@ public:
|
|||
generator.append(R"~~~(
|
||||
}; // end Action
|
||||
|
||||
typedef Function<void(Action, u8)> Handler;
|
||||
using Handler = Function<void(Action, u8)>;
|
||||
|
||||
@class_name@(Handler handler)
|
||||
: m_handler(move(handler))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue