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/PluginUpdater/src/DlgUpdate.cpp | |
parent | bf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff) |
code optimization
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 42de3b5625..1c32790add 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -609,9 +609,9 @@ static renameTable[] = // Returns true if smth. was copied
static bool CheckFileRename(const wchar_t *ptszOldName, wchar_t *pNewName)
{
- for (int i = 0; i < _countof(renameTable); i++) {
- if (wildcmpiw(ptszOldName, renameTable[i].oldName)) {
- wchar_t *ptszDest = renameTable[i].newName;
+ for (auto &it : renameTable) {
+ if (wildcmpiw(ptszOldName, it.oldName)) {
+ wchar_t *ptszDest = it.newName;
if (ptszDest == nullptr)
*pNewName = 0;
else {
|