diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-09-20 21:22:04 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-09-21 22:05:05 +0200 |
| commit | 0bd3e28b17d076da4816fbbfd65d7c8df0a9e37b (patch) | |
| tree | 12ade43355853cf754d411e28ebfe106381c3f9a | |
| parent | 88a109bede58bf8fd6da406824bdcc4153413e85 (diff) | |
qswap.h: use a more robust include guard
Just "QSWAP_H" is a bit meager to be unique. We don't really have a
monopoly on q-prefixed function and header names, there's the C std
function qsort(), e.g...
So use a somewhat more unique name as header guard.
Pick-to: 6.6 6.5
Change-Id: I554fa224afcb6858b752e8044ef3c03dfc69c084
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
| -rw-r--r-- | src/corelib/global/qswap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qswap.h b/src/corelib/global/qswap.h index 7fcaf9b4863..e0f4bd04a6c 100644 --- a/src/corelib/global/qswap.h +++ b/src/corelib/global/qswap.h @@ -1,8 +1,8 @@ // Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only -#ifndef QSWAP_H -#define QSWAP_H +#ifndef QTCORE_QSWAP_H +#define QTCORE_QSWAP_H #include <QtCore/qtconfigmacros.h> #include <QtCore/qcompilerdetection.h> @@ -50,4 +50,4 @@ QT_WARNING_POP QT_END_NAMESPACE -#endif // QSWAP_H +#endif // QTCORE_QSWAP_H |
