Bug 714169 - Fix warning in HashTable.h by using |continue;| instead of |;|. r=jwalden
authorHub Figuière <hfiguiere@mozilla.com>
Thu, 29 Dec 2011 13:37:04 -0800
changeset 84764 29dc9bdea5a90b0a85efeaa385219b30fbd34849
parent 84763 ad85a745d2fbf9a34c5d32cd3471cc6635c79ccf
child 84765 376c18c259193d03d9bec0ee4e6edc4776326f8e
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs714169
milestone12.0a1
Bug 714169 - Fix warning in HashTable.h by using |continue;| instead of |;|. r=jwalden
js/public/HashTable.h
--- a/js/public/HashTable.h
+++ b/js/public/HashTable.h
@@ -196,17 +196,18 @@ class HashTable : private AllocPolicy
 
         T &front() const {
             JS_ASSERT(!empty());
             return cur->t;
         }
 
         void popFront() {
             JS_ASSERT(!empty());
-            while (++cur != end && !cur->isLive());
+            while (++cur != end && !cur->isLive())
+                continue;
         }
     };
 
     /*
      * A Range whose lifetime delimits a mutating enumeration of a hash table.
      * Since rehashing when elements were removed during enumeration would be
      * bad, it is postponed until |endEnumeration()| is called. If
      * |endEnumeration()| is not called before an Enum's constructor, it will