summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-02-28 13:52:54 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-29 01:43:25 +0000
commit29c2c550f62481c59ffe3f9589d87c9d379e9e5a (patch)
treebee56a7782d88a1992af072f15eb55c254b61785
parent8748d11f20882d2889167fdee7a9bcd351ecba01 (diff)
Replace #pragma once with traditional header guards
#pragma once was never allowed for installed headers¹ and syncqt.cpp will now start to enforce this, so port the existing users in this module to traditional header guards. ¹ https://lists.qt-project.org/pipermail/development/2022-October/043121.html Amends 0fbfa7affa2aa22d338135d6f52ef3d3d4145766. Pick-to: 6.5 6.2 Change-Id: Id38cd34f97946e7f7d5033f431876ea8e8b06978 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 301092d8bd269b02fb8c749e38fa464f819835ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 2d2e3b551bd4b40e3e396f8df8104111d3cc189c)
-rw-r--r--src/remoteobjects/qremoteobjectcontainers_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectcontainers_p.h b/src/remoteobjects/qremoteobjectcontainers_p.h
index c485677..54299e3 100644
--- a/src/remoteobjects/qremoteobjectcontainers_p.h
+++ b/src/remoteobjects/qremoteobjectcontainers_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2021 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-#pragma once
+#ifndef QREMOTEOBJECTCONTAINERS_P_H
+#define QREMOTEOBJECTCONTAINERS_P_H
//
// W A R N I N G
@@ -83,3 +84,5 @@ QDataStream &operator>>(QDataStream &ds, QtROAssociativeContainer &p);
QDataStream &operator<<(QDataStream &ds, const QtROAssociativeContainer &p);
QT_END_NAMESPACE
+
+#endif // QREMOTEOBJECTCONTAINERS_P_H