diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-03-05 11:19:16 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-03-11 09:59:27 +0100 |
commit | 17055f5f4833ba96f7d361c7113a88d973a0e186 (patch) | |
tree | 56ecb4092d9d4cbb30c9a21659e5e03a2decac71 /src/corelib/global/qlibraryinfo.cpp | |
parent | 2a9c93a3483e60257d2625b70b395cc20dcc88ce (diff) |
Remove the platformsSection constant from qconfig.cpp.in
This is not configurable and doesn't have to be in the generated
q[make]config.cpp files.
Change-Id: If294d735800a3b5c6b3e269abdd86df401cf4864
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/global/qlibraryinfo.cpp')
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index b48b1b5d95..f6c755b750 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -122,7 +122,7 @@ void QLibrarySettings::load() haveEffectivePaths = haveEffectiveSourcePaths || children.contains(QLatin1String("EffectivePaths")); // Backwards compat: an existing but empty file is claimed to contain the Paths section. havePaths = (!haveDevicePaths && !haveEffectivePaths - && !children.contains(QLatin1String(platformsSection))) + && !children.contains(QLatin1String("Platforms"))) || children.contains(QLatin1String("Paths")); if (!havePaths) settings.reset(nullptr); @@ -594,7 +594,7 @@ QStringList QLibraryInfo::platformPluginArguments(const QString &platformName) #if QT_CONFIG(settings) QScopedPointer<const QSettings> settings(QLibraryInfoPrivate::findConfiguration()); if (!settings.isNull()) { - const QString key = QLatin1String(platformsSection) + const QString key = QLatin1String("Platforms") + QLatin1Char('/') + platformName + QLatin1String("Arguments"); |