2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-05-04 18:55:44 +02:00
|
|
|
|
|
|
|
|
#include "qmleventlocation.h"
|
|
|
|
|
#include <QDataStream>
|
|
|
|
|
|
|
|
|
|
namespace QmlProfiler {
|
|
|
|
|
|
|
|
|
|
QDataStream &operator>>(QDataStream &stream, QmlEventLocation &location)
|
|
|
|
|
{
|
2016-06-06 18:04:53 +02:00
|
|
|
return stream >> location.m_filename >> location.m_line >> location.m_column;
|
2016-05-04 18:55:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QDataStream &operator<<(QDataStream &stream, const QmlEventLocation &location)
|
|
|
|
|
{
|
2016-06-06 18:04:53 +02:00
|
|
|
return stream << location.m_filename << location.m_line << location.m_column;
|
2016-05-04 18:55:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace QmlProfiler
|