Changeset 38259 in webkit for trunk/JavaScriptCore/wtf/AVLTree.h


Ignore:
Timestamp:
Nov 10, 2008, 7:03:44 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Adam Roben.

A few coding style fixes for AVLTree.

  • wtf/AVLTree.h: Moved to WTF namespace, Removed "KJS_" from include guards. (WTF::AVLTree::Iterator::start_iter): Fixed indentation
  • runtime/JSArray.cpp: Added "using namepace WTF".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/AVLTree.h

    r38190 r38259  
    3030 */
    3131
    32 #ifndef KJS_AVL_TREE_H_
    33 #define KJS_AVL_TREE_H_
     32#ifndef AVL_TREE_H_
     33#define AVL_TREE_H_
    3434
    3535#include "Assertions.h"
    3636
    37 namespace JSC {
     37namespace WTF {
    3838
    3939// Here is the reference class for BSet.
     
    204204                    }
    205205                    cmp = -target_cmp;
    206                 } else if (target_cmp != 0)
    207                     if (!((cmp ^ target_cmp) & MASK_HIGH_BIT))
     206                } else if (target_cmp != 0) {
     207                    if (!((cmp ^ target_cmp) & MASK_HIGH_BIT)) {
    208208                        // cmp and target_cmp are both negative or both positive.
    209209                        depth = d;
    210                     h = cmp < 0 ? get_lt(h) : get_gt(h);
    211                     if (h == null())
    212                         break;
    213                     branch[d] = cmp > 0;
    214                     path_h[d++] = h;
     210                    }
     211                }
     212                h = cmp < 0 ? get_lt(h) : get_gt(h);
     213                if (h == null())
     214                    break;
     215                branch[d] = cmp > 0;
     216                path_h[d++] = h;
    215217                }
    216218            }
Note: See TracChangeset for help on using the changeset viewer.