Ok Arch, it's good to remove unuseful brackets, but don't exaggerate too much. Also...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 19 Oct 2014 00:05:18 +0000 (00:05 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 19 Oct 2014 00:05:18 +0000 (00:05 +0000)
svn path=/trunk/; revision=64820

reactos/lib/rtl/splaytree.c

index dfb77b6..6dc13aa 100644 (file)
@@ -22,17 +22,25 @@ VOID
 FixupChildLinks(PRTL_SPLAY_LINKS Links, BOOLEAN Root, BOOLEAN LeftChild)
 {
     if (RtlLeftChild(Links))
+    {
         RtlInsertAsLeftChild(Links, RtlLeftChild(Links));
+    }
 
     if (RtlRightChild(Links))
+    {
         RtlInsertAsRightChild(Links, RtlRightChild(Links));
+    }
 
     if (!Root)
     {
         if (LeftChild)
+        {
             RtlInsertAsLeftChild(RtlParent(Links), Links);
+        }
         else
+        {
             RtlInsertAsRightChild(RtlParent(Links), Links);
+        }
     }
 }
 
@@ -86,15 +94,23 @@ SwapSplayLinks(PRTL_SPLAY_LINKS LinkA,
             if (!RootA)
             {
                 if (LeftA)
+                {
                     RtlInsertAsLeftChild(RtlParent(&Ta), LinkB);
+                }
                 else
+                {
                     RtlInsertAsRightChild(RtlParent(&Ta), LinkB);
+                }
             }
 
             if (LeftB)
+            {
                 RtlInsertAsLeftChild(LinkB, LinkA);
+            }
             else
+            {
                 RtlInsertAsRightChild(LinkB, LinkA);
+            }
         }
 
         FixupChildLinks(LinkA, FALSE, LeftB);