Changeset 51955 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Dec 10, 2009, 11:51:20 AM (15 years ago)
Author:
[email protected]
Message:

Fix three more things found by compiling with clang++.

Reviewed by Geoffrey Garen.

  • runtime/Structure.h:

(JSC::StructureTransitionTable::reifySingleTransition):
Add the 'std' qualifier to the call to make_pair.

  • wtf/DateMath.cpp:

(WTF::initializeDates):
Incrementing a bool is deprecated according to the C++ specification.

  • wtf/PtrAndFlags.h:

(WTF::PtrAndFlags::PtrAndFlags):
Name lookup should not be done in dependent bases, so explicitly qualify the call to set.

Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r51939 r51955  
     12009-12-09  Anders Carlsson  <[email protected]>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Fix three more things found by compiling with clang++.
     6       
     7        * runtime/Structure.h:
     8        (JSC::StructureTransitionTable::reifySingleTransition):
     9        Add the 'std' qualifier to the call to make_pair.
     10
     11        * wtf/DateMath.cpp:
     12        (WTF::initializeDates):
     13        Incrementing a bool is deprecated according to the C++ specification.
     14       
     15        * wtf/PtrAndFlags.h:
     16        (WTF::PtrAndFlags::PtrAndFlags):
     17        Name lookup should not be done in dependent bases, so explicitly qualify the call to set.
     18
    1192009-12-09  Maciej Stachowiak  <[email protected]>
    220
  • trunk/JavaScriptCore/runtime/Structure.h

    r50704 r51955  
    308308        setTransitionTable(transitionTable);
    309309        if (existingTransition)
    310             add(make_pair(existingTransition->m_nameInPrevious.get(), existingTransition->m_attributesInPrevious), existingTransition, existingTransition->m_specificValueInPrevious);
     310            add(std::make_pair(existingTransition->m_nameInPrevious.get(), existingTransition->m_attributesInPrevious), existingTransition, existingTransition->m_specificValueInPrevious);
    311311    }
    312312} // namespace JSC
  • trunk/JavaScriptCore/wtf/DateMath.cpp

    r50927 r51955  
    464464#ifndef NDEBUG
    465465    static bool alreadyInitialized;
    466     ASSERT(!alreadyInitialized++);
     466    ASSERT(!alreadyInitialized);
     467    alreadyInitialized = true;
    467468#endif
    468469
  • trunk/JavaScriptCore/wtf/PtrAndFlags.h

    r48264 r51955  
    6969        {
    7070            PtrAndFlagsBase<T, FlagEnum>::m_ptrAndFlags = 0;
    71             set(ptr);
     71            PtrAndFlagsBase<T, FlagEnum>::set(ptr);
    7272        }
    7373    };
Note: See TracChangeset for help on using the changeset viewer.