Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 6fcc144

Browse files
committed
Call/CallManager: Fix usage of qt keywords
1 parent 838deb4 commit 6fcc144

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/client/QXmppCall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ QXmppCallStream *QXmppCallPrivate::createStream(const QString &media, const QStr
445445
QObject::connect(stream->d->connection, &QXmppIceConnection::disconnected,
446446
q, &QXmppCall::hangup);
447447

448-
emit q->streamCreated(stream);
448+
Q_EMIT q->streamCreated(stream);
449449

450450
return stream;
451451
}
@@ -589,7 +589,7 @@ void QXmppCall::accept()
589589
d->sendRequest(iq);
590590

591591
// notify user
592-
emit d->manager->callStarted(this);
592+
Q_EMIT d->manager->callStarted(this);
593593

594594
// check for call establishment
595595
d->setState(QXmppCall::ActiveState);

src/client/QXmppCallManager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ QXmppCall *QXmppCallManager::call(const QString &jid)
133133
d->calls << call;
134134
connect(call, &QObject::destroyed,
135135
this, &QXmppCallManager::_q_callDestroyed);
136-
emit callStarted(call);
136+
Q_EMIT callStarted(call);
137137

138138
call->d->sendInvite();
139139

@@ -254,6 +254,7 @@ void QXmppCallManager::_q_jingleIqReceived(const QXmppJingleIq &iq)
254254
: iq.contents().constFirst();
255255
auto *stream = call->d->createStream(content.descriptionMedia(), content.creator(), content.name());
256256
if (!stream) {
257+
// FIXME: delete call here?
257258
return;
258259
}
259260
call->d->streams << stream;
@@ -286,7 +287,7 @@ void QXmppCallManager::_q_jingleIqReceived(const QXmppJingleIq &iq)
286287
call->d->sendRequest(ringing);
287288

288289
// notify user
289-
emit callReceived(call);
290+
Q_EMIT callReceived(call);
290291
return;
291292

292293
} else {

0 commit comments

Comments
 (0)