Fix build with ICC on OS X: __Z18qt_getQtMetaObjectv was undefiend
It's inline, but the compiler did not inline it properly from Objective C++ sources. Undefined symbols for architecture x86_64: "__Z18qt_getQtMetaObjectv", referenced from: __ZN2Qt20qt_getEnumMetaObjectENS_15ScrollBarPolicyE in qlocale_mac.o ... Change-Id: Ie9fd7afe060b4e4a8052fffd144fda60c50a9779 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
16864c42d6
commit
6d31d3e7ef
@ -444,8 +444,7 @@ protected:
|
|||||||
QScopedPointer<QObjectData> d_ptr;
|
QScopedPointer<QObjectData> d_ptr;
|
||||||
|
|
||||||
static const QMetaObject staticQtMetaObject;
|
static const QMetaObject staticQtMetaObject;
|
||||||
friend inline const QMetaObject *qt_getQtMetaObject() Q_DECL_NOEXCEPT
|
friend inline const QMetaObject *qt_getQtMetaObject() Q_DECL_NOEXCEPT;
|
||||||
{ return &staticQtMetaObject; }
|
|
||||||
|
|
||||||
friend struct QMetaObject;
|
friend struct QMetaObject;
|
||||||
friend struct QMetaObjectPrivate;
|
friend struct QMetaObjectPrivate;
|
||||||
@ -476,6 +475,9 @@ inline QMetaObject::Connection QObject::connect(const QObject *asender, const ch
|
|||||||
const char *amember, Qt::ConnectionType atype) const
|
const char *amember, Qt::ConnectionType atype) const
|
||||||
{ return connect(asender, asignal, this, amember, atype); }
|
{ return connect(asender, asignal, this, amember, atype); }
|
||||||
|
|
||||||
|
inline const QMetaObject *qt_getQtMetaObject() Q_DECL_NOEXCEPT
|
||||||
|
{ return &QObject::staticQtMetaObject; }
|
||||||
|
|
||||||
#ifndef QT_NO_USERDATA
|
#ifndef QT_NO_USERDATA
|
||||||
class Q_CORE_EXPORT QObjectUserData {
|
class Q_CORE_EXPORT QObjectUserData {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user