Skip to content

Commit 27a615a

Browse files
Johnny CarlsonJohnny Carlson
Johnny Carlson
authored and
Johnny Carlson
committed
qml/test: add include guards to headers
1 parent 90c2237 commit 27a615a

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

src/qml/test/onboardingtests.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Copyright (c) 2023 The Bitcoin Core developers
2+
// Distributed under the MIT software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
#ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
5+
#define BITCOIN_QML_TEST_ONBOARDINGTESTS_H
6+
17
#include <QtQuickTest>
28
#include <QQmlEngine>
39
#include <QQmlContext>
@@ -13,3 +19,5 @@ void Setup::qmlEngineAvailable(QQmlEngine * engine) {
1319
}
1420

1521
QUICK_TEST_MAIN_WITH_SETUP(onboarding, Setup)
22+
23+
#endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H

src/qml/test/onboardingtests.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2014-2023 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
#ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
5+
#define BITCOIN_QML_TEST_ONBOARDINGTESTS_H
46

57
#include <QObject>
68
#include <QQmlEngine>
@@ -10,10 +12,11 @@ class Setup : public QObject
1012
Q_OBJECT
1113

1214
public:
13-
Setup();
15+
Setup();
1416
~Setup() = default;
1517

1618
public Q_SLOTS:
17-
void qmlEngineAvailable(QQmlEngine * engine);
19+
void qmlEngineAvailable(QQmlEngine * engine);
1820
};
1921

22+
#endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H

src/qml/test/testimageprovider.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Copyright (c) 2021 The Bitcoin Core developers
1+
// Copyright (c) 2023 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_QML_TEST_IMAGEPROVIDER_H
6-
#define BITCOIN_QML_TEST_IMAGEPROVIDER_H
5+
#ifndef BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H
6+
#define BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H
77

88
#include <QPixmap>
99
#include <QQuickImageProvider>
@@ -22,4 +22,4 @@ class TestImageProvider : public QQuickImageProvider
2222

2323
};
2424

25-
#endif // BITCOIN_QML_IMAGEPROVIDER_H
25+
#endif // BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H

0 commit comments

Comments
 (0)