// Contains either the QObject*, or the QQmlNotifier* that this
// endpoint is connected to. While the endpoint is notifying, the
- // senderPtr points to another intptr_t that contains this value.
- intptr_t senderPtr;
+ // senderPtr points to another qintptr that contains this value.
+ qintptr senderPtr;
inline QObject *senderAsObject() const;
inline QQmlNotifier *senderAsNotifier() const;
QQmlNotifierEndpoint *n = endpoint;
endpoint = n->next;
- if (n->isNotifying()) *((intptr_t *)(n->senderPtr & ~0x1)) = 0;
+ if (n->isNotifying()) *((qintptr *)(n->senderPtr & ~0x1)) = 0;
n->next = 0;
n->prev = 0;
if (next) { next->prev = &next; }
notifier->endpoints = this;
prev = ¬ifier->endpoints;
- senderPtr = intptr_t(notifier);
+ senderPtr = qintptr(notifier);
}
void QQmlNotifierEndpoint::disconnect()
priv->disconnectNotify(QMetaObjectPrivate::signal(obj->metaObject(), sourceSignal));
}
- if (isNotifying()) *((intptr_t *)(senderPtr & ~0x1)) = 0;
+ if (isNotifying()) *((qintptr *)(senderPtr & ~0x1)) = 0;
next = 0;
prev = 0;
senderPtr = 0;
void QQmlNotifierEndpoint::cancelNotify()
{
if (isNotifying()) {
- intptr_t sp = *((intptr_t *)(senderPtr & ~0x1));
- *((intptr_t *)(senderPtr & ~0x1)) = 0;
+ qintptr sp = *((qintptr *)(senderPtr & ~0x1));
+ *((qintptr *)(senderPtr & ~0x1)) = 0;
senderPtr = sp;
}
}
QObject *QQmlNotifierEndpoint::senderAsObject() const
{
- return isNotifying()?((QObject *)(*((intptr_t *)(senderPtr & ~0x1)))):((QObject *)senderPtr);
+ return isNotifying()?((QObject *)(*((qintptr *)(senderPtr & ~0x1)))):((QObject *)senderPtr);
}
QQmlNotifier *QQmlNotifierEndpoint::senderAsNotifier() const
{
- return isNotifying()?((QQmlNotifier *)(*((intptr_t *)(senderPtr & ~0x1)))):((QQmlNotifier *)senderPtr);
+ return isNotifying()?((QQmlNotifier *)(*((qintptr *)(senderPtr & ~0x1)))):((QQmlNotifier *)senderPtr);
}
QT_END_NAMESPACE