mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-18 17:38:23 +09:00
Author: https://github.com/ldm5180
Commit: 68f76b9e37
Pull-request: https://github.com/SerenityOS/serenity/pull/7328
6 changed files with 6 additions and 7 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace HackStudio {
|
||||
|
||||
typedef Function<void(const String& original_content, const String& diff)> ViewDiffCallback;
|
||||
using ViewDiffCallback = Function<void(const String& original_content, const String& diff)>;
|
||||
|
||||
class GitWidget final : public GUI::Widget {
|
||||
C_OBJECT(GitWidget)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue