Changeset 28721 in webkit for trunk/JavaScriptCore/wtf/HashMap.h


Ignore:
Timestamp:
Dec 14, 2007, 12:50:30 PM (17 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

Reviewed by Sam.

  • removed unnecessary includes of "Vector.h"
  • wtf/HashMap.h: (WTF::copyKeysToVector): Make the type of the vector be a template parameter. This allows copying keys into a vector of a base class or one with an inline capacity. (WTF::copyValuesToVector): Ditto.
  • wtf/HashSet.h: (WTF::copyToVector): Ditto.

WebCore:

Reviewed by Sam.


  • platform/graphics/FontFallbackList.h: Added include of <wtf/Forward.h>
  • platform/graphics/GlyphPageTreeNode.h: Removed an unneeded include.
File:
1 edited

Legend:

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

    r28132 r28721  
    2424
    2525#include "HashTable.h"
    26 #include "Vector.h"
    2726
    2827namespace WTF {
     
    394393    }
    395394   
    396     template<typename T, typename U, typename V, typename W, typename X>
    397     inline void copyKeysToVector(const HashMap<T, U, V, W, X>& collection, Vector<T>& vector)
     395    template<typename T, typename U, typename V, typename W, typename X, typename Y>
     396    inline void copyKeysToVector(const HashMap<T, U, V, W, X>& collection, Y& vector)
    398397    {
    399398        typedef typename HashMap<T, U, V, W, X>::const_iterator::Keys iterator;
     
    407406    } 
    408407
    409     template<typename T, typename U, typename V, typename W, typename X>
    410     inline void copyValuesToVector(const HashMap<T, U, V, W, X>& collection, Vector<U>& vector)
     408    template<typename T, typename U, typename V, typename W, typename X, typename Y>
     409    inline void copyValuesToVector(const HashMap<T, U, V, W, X>& collection, Y& vector)
    411410    {
    412411        typedef typename HashMap<T, U, V, W, X>::const_iterator::Values iterator;
Note: See TracChangeset for help on using the changeset viewer.