Changeset 38392 in webkit


Ignore:
Timestamp:
Nov 14, 2008 9:54:07 AM (15 years ago)
Author:
Simon Hausmann
Message:

2008-11-14 Kristian Amlie <kristian.amlie@trolltech.com>

Reviewed by Darin Adler.

Compile fix for RVCT.

In reality, it is two fixes:

  1. Remove typename. I believe typename can only be used when the named type depends on the template parameters, which it doesn't in this case, so I think this is more correct.
  2. Replace ::iterator scope with specialized typedef. This is to work around a bug in RVCT.

https://bugs.webkit.org/show_bug.cgi?id=22260

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r38391 r38392  
     12008-11-14  Kristian Amlie  <kristian.amlie@trolltech.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Compile fix for RVCT.
     6
     7        In reality, it is two fixes:
     8
     9        1. Remove typename. I believe typename can only be used when the named
     10        type depends on the template parameters, which it doesn't in this
     11        case, so I think this is more correct.
     12        2. Replace ::iterator scope with specialized typedef. This is to work
     13        around a bug in RVCT.
     14
     15        https://bugs.webkit.org/show_bug.cgi?id=22260
     16
     17        * wtf/ListHashSet.h:
     18        (WTF::::find):
     19
    1202008-11-14  Kristian Amlie  <kristian.amlie@trolltech.com>
    221
  • trunk/JavaScriptCore/wtf/ListHashSet.h

    r35900 r38392  
    6161
    6262        typedef HashTable<Node*, Node*, IdentityExtractor<Node*>, NodeHash, NodeTraits, NodeTraits> ImplType;
     63        typedef HashTableIterator<Node*, Node*, IdentityExtractor<Node*>, NodeHash, NodeTraits, NodeTraits> ImplTypeIterator;
     64        typedef HashTableConstIterator<Node*, Node*, IdentityExtractor<Node*>, NodeHash, NodeTraits, NodeTraits> ImplTypeConstIterator;
    6365
    6466        typedef HashArg HashFunctions;
     
    442444    {
    443445        typedef ListHashSetTranslator<ValueType, HashFunctions> Translator;
    444         typename ImplType::iterator it = m_impl.template find<ValueType, Translator>(value);
     446        ImplTypeIterator it = m_impl.template find<ValueType, Translator>(value);
    445447        if (it == m_impl.end())
    446448            return end();
     
    452454    {
    453455        typedef ListHashSetTranslator<ValueType, HashFunctions> Translator;
    454         typename ImplType::const_iterator it = m_impl.template find<ValueType, Translator>(value);
     456        ImplTypeConstIterator it = m_impl.template find<ValueType, Translator>(value);
    455457        if (it == m_impl.end())
    456458            return end();
Note: See TracChangeset for help on using the changeset viewer.