From 391980ce1e890445542441eeb5d9f9cc18ae1baf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jan 2018 22:31:20 +0300 Subject: code optimization --- plugins/Clist_modern/src/modern_sync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Clist_modern/src/modern_sync.cpp') 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); -- cgit v1.2.3