packages/Xorg/lib/qt4/patches/300-compile-fixes.patch
mb a01fa8f0d4 qt4: Make sure that damned function is really inlined
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22742 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-20 17:34:32 +00:00

15 lines
601 B
Diff

---
src/corelib/animation/qvariantanimation.h | 1 +
1 file changed, 1 insertion(+)
--- qt-everywhere-opensource-src-4.7.0-beta2.orig/src/corelib/animation/qvariantanimation.h
+++ qt-everywhere-opensource-src-4.7.0-beta2/src/corelib/animation/qvariantanimation.h
@@ -117,6 +117,7 @@ private:
};
template <typename T>
+static inline __attribute__((__always_inline__))
void qRegisterAnimationInterpolator(QVariant (*func)(const T &from, const T &to, qreal progress)) {
QVariantAnimation::registerInterpolator(reinterpret_cast<QVariantAnimation::Interpolator>(func), qMetaTypeId<T>());
}