aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldebug/qqmlprofilereventlocation.cpp
blob: 8ef19386eb1cee820807a4229eeef0687fb6a068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qqmlprofilereventlocation_p.h"

#include <QtCore/qdatastream.h>

QT_BEGIN_NAMESPACE

QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventLocation &location)
{
    return stream >> location.m_filename >> location.m_line >> location.m_column;
}

QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location)
{
    return stream << location.m_filename << location.m_line << location.m_column;
}

QT_END_NAMESPACE