diff options
author | Robert Griebl <robert.griebl@qt.io> | 2024-03-04 21:58:34 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-03-05 09:49:45 +0100 |
commit | eaf92a7983b481ab6bcd125aff10ff678de1288a (patch) | |
tree | 04b1c3efede950e18d2c192790af258b77027132 /tests | |
parent | 076b2cf8a6fb7ab08c4d10e8aa0112385c293076 (diff) |
Replace all #pragma once with old-style #ifdef include guards
Change-Id: I1805fbccf4d9398fddfe8f4ab977236afc49ca45
Fixes: QTBUG-122951
Pick-to: 6.7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/error-checking.h | 5 | ||||
-rw-r--r-- | tests/auto/qml/crash/qmlcrash/qmlcrash.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/error-checking.h b/tests/auto/error-checking.h index edae213e..d01fda7c 100644 --- a/tests/auto/error-checking.h +++ b/tests/auto/error-checking.h @@ -3,7 +3,8 @@ // Copyright (C) 2018 Pelagicore AG // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -#pragma once +#ifndef ERROR_CHECKING_H +#define ERROR_CHECKING_H #include <QTest> @@ -18,3 +19,5 @@ QCOMPARE(_actual_errstr, _expected_errstr); \ } \ } while (false) + +#endif // ERROR_CHECKING_H diff --git a/tests/auto/qml/crash/qmlcrash/qmlcrash.h b/tests/auto/qml/crash/qmlcrash/qmlcrash.h index 876840a9..3b894265 100644 --- a/tests/auto/qml/crash/qmlcrash/qmlcrash.h +++ b/tests/auto/qml/crash/qmlcrash/qmlcrash.h @@ -3,7 +3,8 @@ // Copyright (C) 2018 Pelagicore AG // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -#pragma once +#ifndef QMLCRASH_H +#define QMLCRASH_H #include <QQmlExtensionPlugin> #include <QThread> @@ -48,3 +49,5 @@ private: void run() override; QmlCrash *m_qmlCrash; }; + +#endif // QMLCRASH_H |