From fce36ac86667cc4490487689fb4b29f9a824bca8 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 22 Sep 2022 20:48:41 +0200 Subject: [PATCH] Rename the header qenvironmentvariables.h -> qtenvironmentvariables.h Change-Id: I8153c856c2cd93ec6932cd7dd5e9d7273d5712dd Reviewed-by: Thiago Macieira Reviewed-by: Edward Welbourne --- src/corelib/CMakeLists.txt | 2 +- src/corelib/compat/removed_api.cpp | 2 +- src/corelib/global/qglobal.h | 2 +- ...tvariables.cpp => qtenvironmentvariables.cpp} | 16 ++++++++-------- ...nmentvariables.h => qtenvironmentvariables.h} | 8 ++++---- src/tools/bootstrap/CMakeLists.txt | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) rename src/corelib/global/{qenvironmentvariables.cpp => qtenvironmentvariables.cpp} (97%) rename src/corelib/global/{qenvironmentvariables.h => qtenvironmentvariables.h} (88%) diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index 32e84561367..a4ea44db427 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -55,7 +55,6 @@ qt_internal_add_module(Core global/qcontainerinfo.h global/qdarwinhelpers.h global/qendian.cpp global/qendian.h global/qendian_p.h - global/qenvironmentvariables.cpp global/qenvironmentvariables.h global/qexceptionhandling.cpp global/qexceptionhandling.h global/qflags.h global/qfloat16.cpp global/qfloat16.h @@ -80,6 +79,7 @@ qt_internal_add_module(Core global/qtclasshelpermacros.h global/qtconfigmacros.h global/qtdeprecationmarkers.h + global/qtenvironmentvariables.cpp global/qtenvironmentvariables.h global/qtrace_p.h global/qtranslation.h global/qtresource.h diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 213b07f6554..234a9522d46 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -295,7 +295,7 @@ QString QDir::operator[](int i) const } #endif -#include "qenvironmentvariables.h" +#include "qtenvironmentvariables.h" bool qputenv(const char *varName, const QByteArray &value) { diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 6a247f9ea4e..70b0a0faf94 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -90,7 +90,6 @@ QT_END_NAMESPACE #include #include #include -#include #include #include #include @@ -100,6 +99,7 @@ QT_END_NAMESPACE #include #include #include +#include #include #include #include diff --git a/src/corelib/global/qenvironmentvariables.cpp b/src/corelib/global/qtenvironmentvariables.cpp similarity index 97% rename from src/corelib/global/qenvironmentvariables.cpp rename to src/corelib/global/qtenvironmentvariables.cpp index 48609133273..4046beae1f4 100644 --- a/src/corelib/global/qenvironmentvariables.cpp +++ b/src/corelib/global/qtenvironmentvariables.cpp @@ -1,7 +1,7 @@ // 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 -#include "qenvironmentvariables.h" +#include "qtenvironmentvariables.h" #include #include @@ -18,7 +18,7 @@ QT_BEGIN_NAMESPACE Q_CONSTINIT static QBasicMutex environmentMutex; /*! - \relates + \relates \threadsafe Returns the value of the environment variable with name \a varName as a @@ -63,7 +63,7 @@ QByteArray qgetenv(const char *varName) \fn QString qEnvironmentVariable(const char *varName, const QString &defaultValue) \fn QString qEnvironmentVariable(const char *varName) - \relates + \relates \since 5.10 These functions return the value of the environment variable, \a varName, as a @@ -143,7 +143,7 @@ QString qEnvironmentVariable(const char *varName) } /*! - \relates + \relates \since 5.1 Returns whether the environment variable \a varName is empty. @@ -171,7 +171,7 @@ bool qEnvironmentVariableIsEmpty(const char *varName) noexcept } /*! - \relates + \relates \since 5.5 Returns the numerical value of the environment variable \a varName. @@ -219,7 +219,7 @@ int qEnvironmentVariableIntValue(const char *varName, bool *ok) noexcept } /*! - \relates + \relates \since 5.1 Returns whether the environment variable \a varName is set. @@ -244,7 +244,7 @@ bool qEnvironmentVariableIsSet(const char *varName) noexcept /*! \fn bool qputenv(const char *varName, QByteArrayView value) - \relates + \relates This function sets the \a value of the environment variable named \a varName. It will create the variable if it does not exist. It @@ -294,7 +294,7 @@ bool qputenv(const char *varName, QByteArrayView raw) } /*! - \relates + \relates This function deletes the variable \a varName from the environment. diff --git a/src/corelib/global/qenvironmentvariables.h b/src/corelib/global/qtenvironmentvariables.h similarity index 88% rename from src/corelib/global/qenvironmentvariables.h rename to src/corelib/global/qtenvironmentvariables.h index 78fea255d37..1d26bed316b 100644 --- a/src/corelib/global/qenvironmentvariables.h +++ b/src/corelib/global/qtenvironmentvariables.h @@ -1,14 +1,14 @@ // 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 QENVIRONMENTVARIABLES_H -#define QENVIRONMENTVARIABLES_H +#ifndef QTENVIRONMENTVARIABLES_H +#define QTENVIRONMENTVARIABLES_H #include #include #if 0 -#pragma qt_class(QEnvironmentVariables) +#pragma qt_class(QtEnvironmentVariables) #pragma qt_sync_stop_processing #endif @@ -33,4 +33,4 @@ Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nu QT_END_NAMESPACE -#endif /* QENVIRONMENTVARIABLES_H */ +#endif /* QTENVIRONMENTVARIABLES_H */ diff --git a/src/tools/bootstrap/CMakeLists.txt b/src/tools/bootstrap/CMakeLists.txt index 66d16781aa2..5a2299e37c4 100644 --- a/src/tools/bootstrap/CMakeLists.txt +++ b/src/tools/bootstrap/CMakeLists.txt @@ -19,7 +19,6 @@ qt_internal_extend_target(Bootstrap SOURCES ../../corelib/global/qassert.cpp ../../corelib/global/qendian.cpp - ../../corelib/global/qenvironmentvariables.cpp ../../corelib/global/qfloat16.cpp ../../corelib/global/qglobal.cpp ../../corelib/global/qlogging.cpp @@ -27,6 +26,7 @@ qt_internal_extend_target(Bootstrap ../../corelib/global/qnumeric.cpp ../../corelib/global/qoperatingsystemversion.cpp ../../corelib/global/qrandom.cpp + ../../corelib/global/qtenvironmentvariables.cpp ../../corelib/io/qabstractfileengine.cpp ../../corelib/io/qbuffer.cpp ../../corelib/io/qdebug.cpp