summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_sync.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:27 +0300
commit391980ce1e890445542441eeb5d9f9cc18ae1baf (patch)
treeee1b165175dcdaeeaabd2ddb822542e648663a90 /plugins/Clist_modern/src/modern_sync.cpp
parentbf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff)
code optimization
Diffstat (limited to 'plugins/Clist_modern/src/modern_sync.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_sync.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_sync.cpp b/plugins/Clist_modern/src/modern_sync.cpp
index 2715e8da36..50bec6b3dc 100644
--- a/plugins/Clist_modern/src/modern_sync.cpp
+++ b/plugins/Clist_modern/src/modern_sync.cpp
@@ -81,10 +81,9 @@ int SyncCall(void * vproc, int count, ...)
{
LPARAM params[5];
va_list va;
- int i;
params[0] = (LPARAM)count;
va_start(va, count);
- for (i = 0; i < count && i < _countof(params) - 1; i++)
+ for (int i = 0; i < count && i < _countof(params) - 1; i++)
params[i + 1] = va_arg(va, LPARAM);
va_end(va);