summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/IntrusiveRedBlackTree.h2
-rw-r--r--AK/RedBlackTree.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/AK/IntrusiveRedBlackTree.h b/AK/IntrusiveRedBlackTree.h
index 1a13e45aec..e2ff1c2288 100644
--- a/AK/IntrusiveRedBlackTree.h
+++ b/AK/IntrusiveRedBlackTree.h
@@ -17,7 +17,7 @@ template<Integral K, typename V, IntrusiveRedBlackTreeNode<K> V::*member>
class IntrusiveRedBlackTree : public BaseRedBlackTree<K> {
public:
IntrusiveRedBlackTree() = default;
- virtual ~IntrusiveRedBlackTree() override
+ ~IntrusiveRedBlackTree()
{
clear();
}
diff --git a/AK/RedBlackTree.h b/AK/RedBlackTree.h
index dbfebbad27..ac6db5619e 100644
--- a/AK/RedBlackTree.h
+++ b/AK/RedBlackTree.h
@@ -33,12 +33,10 @@ public:
: key(key)
{
}
- virtual ~Node() {};
};
protected:
BaseRedBlackTree() = default; // These are protected to ensure no one instantiates the leaky base red black tree directly
- virtual ~BaseRedBlackTree() {};
void rotate_left(Node* subtree_root)
{
@@ -418,7 +416,7 @@ template<Integral K, typename V>
class RedBlackTree : public BaseRedBlackTree<K> {
public:
RedBlackTree() = default;
- virtual ~RedBlackTree() override
+ ~RedBlackTree()
{
clear();
}