aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callanswerevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/callanswerevent.cpp')
-rw-r--r--lib/events/callanswerevent.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/lib/events/callanswerevent.cpp b/lib/events/callanswerevent.cpp
index d2862241..7ab4a6fb 100644
--- a/lib/events/callanswerevent.cpp
+++ b/lib/events/callanswerevent.cpp
@@ -13,13 +13,12 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "callanswerevent.h"
#include "event.h"
-
#include "logging.h"
#include <QtCore/QJsonDocument>
@@ -55,18 +54,18 @@ CallAnswerEvent::CallAnswerEvent(const QJsonObject& obj)
CallAnswerEvent::CallAnswerEvent(const QString& callId, const int lifetime,
const QString& sdp)
- : CallEventBase(typeId(), matrixTypeId(), callId, 0,
- { { QStringLiteral("lifetime"), lifetime }
- , { QStringLiteral("answer"), QJsonObject {
- { QStringLiteral("type"), QStringLiteral("answer") },
- { QStringLiteral("sdp"), sdp } } }
- })
-{ }
+ : CallEventBase(
+ typeId(), matrixTypeId(), callId, 0,
+ { { QStringLiteral("lifetime"), lifetime },
+ { QStringLiteral("answer"),
+ QJsonObject { { QStringLiteral("type"), QStringLiteral("answer") },
+ { QStringLiteral("sdp"), sdp } } } })
+{}
CallAnswerEvent::CallAnswerEvent(const QString& callId, const QString& sdp)
- : CallEventBase(typeId(), matrixTypeId(), callId, 0,
- { { QStringLiteral("answer"), QJsonObject {
- { QStringLiteral("type"), QStringLiteral("answer") },
- { QStringLiteral("sdp"), sdp } } }
- })
-{ }
+ : CallEventBase(
+ typeId(), matrixTypeId(), callId, 0,
+ { { QStringLiteral("answer"),
+ QJsonObject { { QStringLiteral("type"), QStringLiteral("answer") },
+ { QStringLiteral("sdp"), sdp } } } })
+{}