From aa161b1e4e151bd8a019da9797f9e0d717e6d00f Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 30 Apr 2024 12:01:18 +0200 Subject: qtconf: Add comment to clarify code handling env vars The string handling is not immediately clear, unless one already knows what it is supposed to do. Change-Id: Icd5746513d760d478f03c8aded3669b06b692a87 Reviewed-by: Thiago Macieira Reviewed-by: Ahmad Samir Reviewed-by: Joerg Bornemann --- src/corelib/global/qlibraryinfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib') diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index 92729b06f1..1b03733d2a 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -554,6 +554,10 @@ QString QLibraryInfoPrivate::path(QLibraryInfo::LibraryPath p, UsageMode usageMo } qsizetype startIndex = 0; + /* We support placeholders of the form $() in qt.conf. + The loop below tries to find all such placeholders, and replaces + them with the actual value of the ENV_VAR environment variable + */ while (true) { startIndex = ret.indexOf(u'$', startIndex); if (startIndex < 0) -- cgit v1.2.3