~ubuntu-branches/ubuntu/quantal/lightning-extension/quantal

« back to all changes in this revision

Viewing changes to mozilla/mfbt/LinkedList.h

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-06-20 23:50:32 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20120620235032-haecscdskaopvm10
Tags: upstream-1.6~b1+build1
ImportĀ upstreamĀ versionĀ 1.6~b1+build1

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
    }
357
357
 
358
358
    /*
 
359
     * Remove all the elements from the list.
 
360
     *
 
361
     * This runs in time linear to the list's length, because we have to mark
 
362
     * each element as not in the list.
 
363
     */
 
364
    void clear()
 
365
    {
 
366
        while (popFirst())
 
367
            continue;
 
368
    }
 
369
 
 
370
    /*
359
371
     * In a debug build, make sure that the list is sane (no cycles, consistent
360
372
     * next/prev pointers, only one sentinel).  Has no effect in release builds.
361
373
     */