aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:48:40 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:45 +0100
commit97ecdf6a1b7f95bc1b342b3eaf141cd460249680 (patch)
treedfa139170f95eeda51f241580cc019ab0f4684d8 /src/modules/theme
parentApply clang-tidy: modernize-use-default (diff)
downloadKVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.gz
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.bz2
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.zip
Apply clang-tidy: modernize-loop-convert
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/ThemeFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/theme/ThemeFunctions.cpp b/src/modules/theme/ThemeFunctions.cpp
index 90e5a3bdc..0f9b92de4 100644
--- a/src/modules/theme/ThemeFunctions.cpp
+++ b/src/modules/theme/ThemeFunctions.cpp
@@ -91,9 +91,9 @@ namespace ThemeFunctions
return notAValidThemePackage(szError);
// make sure the default fields exist
- for(int i = 0; i < 6; i++)
+ for(auto & check_field : check_fields)
{
- pValue = pInfoFields->find(check_fields[i]);
+ pValue = pInfoFields->find(check_field);
if(!pValue)
return notAValidThemePackage(szError);
}