diff options
Diffstat (limited to 'JavaScriptCore/wtf/PassRefPtr.h')
-rw-r--r-- | JavaScriptCore/wtf/PassRefPtr.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/JavaScriptCore/wtf/PassRefPtr.h b/JavaScriptCore/wtf/PassRefPtr.h index 9c6e44f..d7a9341 100644 --- a/JavaScriptCore/wtf/PassRefPtr.h +++ b/JavaScriptCore/wtf/PassRefPtr.h @@ -33,19 +33,32 @@ namespace WTF { // Remove inline for WINSCW compiler to prevent the compiler agressively resolving // T::ref() and T::deref(), which will fail compiling when PassRefPtr<T> is used as // a class member or function arguments before T is defined. + + // [Qt]r57240 broke Qt build (might be a gcc bug) + // FIXME! See: https://bugs.webkit.org/show_bug.cgi?id=37253 template<typename T> #if !COMPILER(WINSCW) +#if !PLATFORM(QT) + ALWAYS_INLINE +#else inline #endif +#endif void refIfNotNull(T* ptr) { if (UNLIKELY(ptr != 0)) ptr->ref(); } + // [Qt]r57240 broke Qt build (might be a gcc bug) + // FIXME! See: https://bugs.webkit.org/show_bug.cgi?id=37253 template<typename T> #if !COMPILER(WINSCW) - inline +#if !PLATFORM(QT) + ALWAYS_INLINE +#else + inline +#endif #endif void derefIfNotNull(T* ptr) { |