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

Commit f5cb043

Browse files
committed
Call: Use chrono literals for QTimer
1 parent 17c38c7 commit f5cb043

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/client/QXmppCall.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717

1818
#include "StringLiterals.h"
1919

20+
#include <chrono>
21+
22+
// gstreamer
2023
#include <gst/gst.h>
2124

2225
#include <QDomElement>
2326
#include <QTimer>
2427

28+
using namespace std::chrono_literals;
29+
2530
/// \cond
2631
QXmppCallPrivate::QXmppCallPrivate(QXmppCall *qq)
2732
: direction(QXmppCall::IncomingDirection),
@@ -547,7 +552,7 @@ void QXmppCallPrivate::terminate(QXmppJingleIq::Reason::Type reasonType)
547552
setState(QXmppCall::DisconnectingState);
548553

549554
// schedule forceful termination in 5s
550-
QTimer::singleShot(5000, q, &QXmppCall::terminated);
555+
QTimer::singleShot(5s, q, &QXmppCall::terminated);
551556
}
552557
/// \endcond
553558

0 commit comments

Comments
 (0)