diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2021-05-20 17:27:29 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-21 10:07:22 +0100 |
commit | 68f76b9e3750c8f4e5e3ee8c3d346772ce6d3593 (patch) | |
tree | 2ccb3f1312800accf500f26468f87002a9aa752e /Userland/Applications/Piano | |
parent | 800ea8ea969835297dc7e7da345a45b9dc5e751a (diff) | |
download | serenity-68f76b9e3750c8f4e5e3ee8c3d346772ce6d3593.zip |
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.
Diffstat (limited to 'Userland/Applications/Piano')
-rw-r--r-- | Userland/Applications/Piano/Track.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/Track.h b/Userland/Applications/Piano/Track.h index 6c660e37fc..d6a2abfb1c 100644 --- a/Userland/Applications/Piano/Track.h +++ b/Userland/Applications/Piano/Track.h @@ -13,7 +13,7 @@ #include <AK/SinglyLinkedList.h> #include <LibAudio/Buffer.h> -typedef AK::SinglyLinkedListIterator<SinglyLinkedList<RollNote>, RollNote> RollIter; +using RollIter = AK::SinglyLinkedListIterator<SinglyLinkedList<RollNote>, RollNote>; class Track { AK_MAKE_NONCOPYABLE(Track); |