qt4: Make sure that damned function is really inlined
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22742 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
09ae446f45
commit
a01fa8f0d4
@ -8,7 +8,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
+static inline
|
+static inline __attribute__((__always_inline__))
|
||||||
void qRegisterAnimationInterpolator(QVariant (*func)(const T &from, const T &to, qreal progress)) {
|
void qRegisterAnimationInterpolator(QVariant (*func)(const T &from, const T &to, qreal progress)) {
|
||||||
QVariantAnimation::registerInterpolator(reinterpret_cast<QVariantAnimation::Interpolator>(func), qMetaTypeId<T>());
|
QVariantAnimation::registerInterpolator(reinterpret_cast<QVariantAnimation::Interpolator>(func), qMetaTypeId<T>());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user