diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-26 22:31:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-26 22:31:27 +0300 |
commit | 391980ce1e890445542441eeb5d9f9cc18ae1baf (patch) | |
tree | ee1b165175dcdaeeaabd2ddb822542e648663a90 /plugins/Variables/src | |
parent | bf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff) |
code optimization
Diffstat (limited to 'plugins/Variables/src')
-rw-r--r-- | plugins/Variables/src/contact.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp index c9a5785f16..270ae015b8 100644 --- a/plugins/Variables/src/contact.cpp +++ b/plugins/Variables/src/contact.cpp @@ -99,9 +99,9 @@ BYTE getContactInfoType(wchar_t* type) if (type == nullptr || mir_wstrlen(type) == 0)
return 0;
- for (int i = 0; i < _countof(builtinCnfs); i++)
- if (!mir_wstrcmp(builtinCnfs[i].str, type))
- return builtinCnfs[i].cnfCode;
+ for (auto &it : builtinCnfs)
+ if (!mir_wstrcmp(it.str, type))
+ return it.cnfCode;
return 0;
}
|