From 95aa036670a1ce2c461ffd9bd3a586d191ee4675 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2012 22:48:01 +0000 Subject: - various icolib fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/Db_autobackups') diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp index c52b3ad199..f771261202 100644 --- a/plugins/Db_autobackups/main.cpp +++ b/plugins/Db_autobackups/main.cpp @@ -63,17 +63,16 @@ static int FoldersInit(void) static void IcoLibInit(void) { - int i; - SKINICONDESC sid = {0}; TCHAR tszFile[MAX_PATH]; GetModuleFileName(hInst, tszFile, MAX_PATH); + SKINICONDESC sid = {0}; sid.cbSize = sizeof(SKINICONDESC); sid.ptszDefaultFile = tszFile; sid.ptszSection = _T("Database/Database Backups"); sid.flags = SIDF_ALL_TCHAR; - for ( i = 0; i < SIZEOF(iconList); i++ ) { + for (int i = 0; i < SIZEOF(iconList); i++) { sid.pszName = iconList[i].szName; sid.ptszDescription = iconList[i].szDescr; sid.iDefaultIndex = -iconList[i].defIconID; -- cgit v1.2.3