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 /src/core/stdidle | |
parent | bf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff) |
code optimization
Diffstat (limited to 'src/core/stdidle')
-rw-r--r-- | src/core/stdidle/src/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdidle/src/options.cpp b/src/core/stdidle/src/options.cpp index a3753db6d1..e9e670fe51 100644 --- a/src/core/stdidle/src/options.cpp +++ b/src/core/stdidle/src/options.cpp @@ -94,8 +94,8 @@ public: spinIdle.SetRange(60, 1); spinIdle.SetPosition(S.iIdleTime1st); - for (int j = 0; j < _countof(aa_Status); j++) - cmbAAStatus.AddString(pcli->pfnGetStatusModeDescription(aa_Status[j], 0)); + for (auto &it : aa_Status) + cmbAAStatus.AddString(pcli->pfnGetStatusModeDescription(it, 0)); cmbAAStatus.SetCurSel(IdleGetStatusIndex(S.bAAStatus)); ShowHide(); |