Restructure transforms a little and run make tabbing
[satune.git] / src / Collections / hashtable.h
index 18d7353d71b56ffec84eeb1bf0c74e8c5e069553..44b984daafea43a9b9ab943ea23d04dc025ea531 100644 (file)
@@ -115,10 +115,10 @@ public:
                size = 0;
        }
 
                size = 0;
        }
 
-  /** Doesn't work with zero value */
-  _Val getRandomValue() {
-               while(true) {
-                       unsigned int index=random() & capacitymask;
+       /** Doesn't work with zero value */
+       _Val getRandomValue() {
+               while (true) {
+                       unsigned int index = random() & capacitymask;
                        struct Hashlistnode<_Key, _Val> *bin = &table[index];
                        if (bin->key != NULL && bin->val != NULL) {
                                return bin->val;
                        struct Hashlistnode<_Key, _Val> *bin = &table[index];
                        if (bin->key != NULL && bin->val != NULL) {
                                return bin->val;