mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02: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:
committed by
Linus Groh
parent
800ea8ea96
commit
68f76b9e37
Notes:
sideshowbarker
2024-07-18 17:38:23 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/68f76b9e375 Pull-request: https://github.com/SerenityOS/serenity/pull/7328
@@ -17,6 +17,5 @@ enum class BreakpointChange {
|
||||
Removed,
|
||||
};
|
||||
|
||||
typedef Function<void(const String& file, size_t line, BreakpointChange)> BreakpointChangeCallback;
|
||||
|
||||
using BreakpointChangeCallback = Function<void(const String& file, size_t line, BreakpointChange)>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user