diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-05-07 09:45:39 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-05-22 12:59:33 +0200 |
commit | 5cbe81dae2fdf2ab80bd4ef67bcce3e01a37bca8 (patch) | |
tree | 9552a3a22fb6b48c43d8c3b22f85e82961383f96 /src/gui/painting/qregion.cpp | |
parent | 1688680fb6b826738796a5f399089314ea4ed192 (diff) |
QLibraryInfo: Refactor in preparation of multiple entries (1/2)
Extract the path normalization into a helper function, and use
qScopeGuard for leaving QSetting's group.
Moreover, slightly modernize the code by using sliced instead of mid,
and by using the more appropriate qEnvironmentVariable over getenv (our
target is a QString, and the variable contains user text).
Change-Id: I08e600782864684f10ff03451c789e59cdb8febf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/gui/painting/qregion.cpp')
0 files changed, 0 insertions, 0 deletions