src/dbus/qdbuspendingreply.cpp
changeset 29 b72c6db6890b
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
25:e24348a560a6 29:b72c6db6890b
   250     QDBusPendingCall::operator=(other);
   250     QDBusPendingCall::operator=(other);
   251 }
   251 }
   252 
   252 
   253 void QDBusPendingReplyData::assign(const QDBusMessage &message)
   253 void QDBusPendingReplyData::assign(const QDBusMessage &message)
   254 {
   254 {
   255     d = new QDBusPendingCallPrivate; // drops the reference to the old one
   255     d = new QDBusPendingCallPrivate(QDBusMessage(), 0); // drops the reference to the old one
   256     d->replyMessage = message;
   256     d->replyMessage = message;
   257 }
   257 }
   258 
   258 
   259 QVariant QDBusPendingReplyData::argumentAt(int index) const
   259 QVariant QDBusPendingReplyData::argumentAt(int index) const
   260 {
   260 {
   269 }
   269 }
   270 
   270 
   271 void QDBusPendingReplyData::setMetaTypes(int count, const int *types)
   271 void QDBusPendingReplyData::setMetaTypes(int count, const int *types)
   272 {
   272 {
   273     Q_ASSERT(d);
   273     Q_ASSERT(d);
       
   274     QMutexLocker locker(&d->mutex);
   274     d->setMetaTypes(count, types);
   275     d->setMetaTypes(count, types);
   275     d->checkReceivedSignature();
   276     d->checkReceivedSignature();
   276 }
   277 }
   277 
   278