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>
This commit is contained in:
parent
88a109bede
commit
0bd3e28b17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user