diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-12 20:04:18 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-12 20:05:14 +0100 |
commit | c75b686f74043979091f21bb4b6ed5d4d662b6a0 (patch) | |
tree | a4b9271251c9b56ad806509606641f24e00061bc /src/skin | |
parent | 6880ec89649a1d848ef944246a0a938001808755 (diff) |
Fix remaining -Wclazy-range-loop warnings using a local const var
Diffstat (limited to 'src/skin')
-rw-r--r-- | src/skin/skinloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/skin/skinloader.cpp b/src/skin/skinloader.cpp index 69499aa778..abc5a45db0 100644 --- a/src/skin/skinloader.cpp +++ b/src/skin/skinloader.cpp @@ -49,7 +49,8 @@ QList<QDir> SkinLoader::getSkinSearchPaths() const { } QString SkinLoader::getSkinPath(const QString& skinName) const { - for (QDir dir : getSkinSearchPaths()) { + const QList<QDir> skinSearchPaths = getSkinSearchPaths(); + for (QDir dir : skinSearchPaths) { if (dir.cd(skinName)) { return dir.absolutePath(); } |