Ignore:
Timestamp:
Apr 8, 2010, 1:16:28 AM (15 years ago)
Author:
Csaba Osztrogonác
Message:

Reviewed Oliver Hunt.

[Qt]r57240 broke Qt build (might be a gcc bug)
https://bugs.webkit.org/show_bug.cgi?id=37253

Workaround until fix. On PLATFORM(QT) use inline instead of ALWAYS_INLINE.

  • wtf/PassRefPtr.h: Qt guards added.
File:
1 edited

Legend:

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

    r57240 r57262  
    3434    // T::ref() and T::deref(), which will fail compiling when PassRefPtr<T> is used as
    3535    // a class member or function arguments before T is defined.
     36
     37    // [Qt]r57240 broke Qt build (might be a gcc bug)
     38    // FIXME! See: https://bugs.webkit.org/show_bug.cgi?id=37253
    3639    template<typename T>
    3740#if !COMPILER(WINSCW)
     41#if !PLATFORM(QT)
    3842    ALWAYS_INLINE
     43#else
     44    inline
     45#endif
    3946#endif
    4047    void refIfNotNull(T* ptr)
     
    4451    }
    4552
     53    // [Qt]r57240 broke Qt build (might be a gcc bug)
     54    // FIXME! See: https://bugs.webkit.org/show_bug.cgi?id=37253
    4655    template<typename T>
    4756#if !COMPILER(WINSCW)
    48     ALWAYS_INLINE
     57#if !PLATFORM(QT)
     58    ALWAYS_INLINE
     59#else
     60    inline
     61#endif
    4962#endif
    5063    void derefIfNotNull(T* ptr)
Note: See TracChangeset for help on using the changeset viewer.