1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qcomparisontesthelper_p.h"
5
6QT_BEGIN_NAMESPACE
7
8namespace QTestPrivate {
9
10QByteArray formatTypeWithCRefImpl(QMetaType type, bool isConst, bool isRef, bool isRvalueRef)
11{
12 QByteArray res(type.name());
13 if (isConst)
14 res.append(s: " const");
15 if (isRef)
16 res.append(s: isRvalueRef ? " &&" : " &");
17 return res;
18}
19
20} // namespace QTestPrivate
21
22QT_END_NAMESPACE
23

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtbase/src/testlib/qcomparisontesthelper.cpp