diff options
| author | gdk <gab.dark.100@gmail.com> | 2022-06-23 04:08:01 -0300 |
|---|---|---|
| committer | Mary-nyan <thog@protonmail.com> | 2022-09-10 16:23:49 +0200 |
| commit | 6a07f80b766a6894ef6699acbafc719c9a7d7bd8 (patch) | |
| tree | 3b8a3e4a67c1be4d48cb67b3ed5858876dcdf0a6 | |
| parent | 22214ac664e726427d15c18d9e5a5b248fe8478f (diff) | |
Make RBTree node fields internal again
Prevents someone from accidentaly messing with them and leaving the tree in a invalid state
| -rw-r--r-- | Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs index c6c01a06..7143240d 100644 --- a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs +++ b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs @@ -5,10 +5,10 @@ namespace Ryujinx.Common.Collections /// </summary> public class IntrusiveRedBlackTreeNode<T> where T : IntrusiveRedBlackTreeNode<T> { - public bool Color = true; - public T Left; - public T Right; - public T Parent; + internal bool Color = true; + internal T Left; + internal T Right; + internal T Parent; public T Predecessor => IntrusiveRedBlackTreeImpl<T>.PredecessorOf((T)this); public T Successor => IntrusiveRedBlackTreeImpl<T>.SuccessorOf((T)this); |
