diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-02-28 13:52:54 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-02-28 18:50:20 +0000 |
commit | 2d2e3b551bd4b40e3e396f8df8104111d3cc189c (patch) | |
tree | 2d32a5037eafdfdfb230f7b302e729914222183f | |
parent | 59bd8b17a534a6c264d10a97752623576f3e5cb0 (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.6 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>
-rw-r--r-- | src/remoteobjects/qremoteobjectcontainers_p.h | 5 |
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 |