diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-08 03:07:34 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-08 19:17:07 +0300 |
commit | cb9720baabf9bed1f501556cf6fbce88cd657514 (patch) | |
tree | aedaa94f2e8c7cbbb9dae917e02e6b077a33ac80 /AK/RedBlackTree.h | |
parent | 1db925076641526a3ef5c4c41fc94f0c9d3361ee (diff) | |
download | serenity-cb9720baabf9bed1f501556cf6fbce88cd657514.zip |
AK: Set IntrusiveRBTree Node key on insertion instead of construction
This makes the API look much nicer.
Diffstat (limited to 'AK/RedBlackTree.h')
-rw-r--r-- | AK/RedBlackTree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/RedBlackTree.h b/AK/RedBlackTree.h index df23ed4607..adce1cc5f7 100644 --- a/AK/RedBlackTree.h +++ b/AK/RedBlackTree.h @@ -38,6 +38,9 @@ public: : key(key) { } + Node() + { + } virtual ~Node() {}; }; |