summaryrefslogtreecommitdiff
path: root/AK/RedBlackTree.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-09-08 03:07:34 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-08 19:17:07 +0300
commitcb9720baabf9bed1f501556cf6fbce88cd657514 (patch)
treeaedaa94f2e8c7cbbb9dae917e02e6b077a33ac80 /AK/RedBlackTree.h
parent1db925076641526a3ef5c4c41fc94f0c9d3361ee (diff)
downloadserenity-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.h3
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() {};
};