From e5cb033463036b182fb6e5e3eed50a14987f5300 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Jun 2015 18:19:34 +0000 Subject: SKINICONDESC -> MAllStrings git-svn-id: http://svn.miranda-ng.org/main/trunk@14054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/mu_common.cpp | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'plugins/HistoryStats') diff --git a/plugins/HistoryStats/src/mu_common.cpp b/plugins/HistoryStats/src/mu_common.cpp index 74cd534b0f..5bd5a5a4ab 100644 --- a/plugins/HistoryStats/src/mu_common.cpp +++ b/plugins/HistoryStats/src/mu_common.cpp @@ -125,15 +125,12 @@ namespace mu void addIcon(const TCHAR* szSection, const TCHAR* szDescription, const char* szIconName, const char* szDefaultFile, int iDefaultIndex, int cx /* = 16 */, int cy /* = 16 */) { - SKINICONDESC sid; - - sid.cbSize = sizeof(sid); - sid.ptszSection = const_cast(szSection); - sid.ptszDescription = const_cast(szDescription); + SKINICONDESC sid = { 0 }; + sid.section.t = const_cast(szSection); + sid.description.t = const_cast(szDescription); sid.pszName = const_cast(szIconName); - sid.pszDefaultFile = const_cast(szDefaultFile); + sid.defaultFile.a = const_cast(szDefaultFile); sid.iDefaultIndex = iDefaultIndex; - sid.hDefaultIcon = NULL; sid.cx = cx; sid.cy = cy; sid.flags = SIDF_TCHAR; @@ -142,13 +139,11 @@ namespace mu void addIcon(const TCHAR* szSection, const TCHAR* szDescription, const char* szIconName, HICON hDefaultIcon, int cx /* = 16 */, int cy /* = 16 */) { - SKINICONDESC sid; - - sid.cbSize = sizeof(sid); - sid.ptszSection = const_cast(szSection); - sid.ptszDescription = const_cast(szDescription); + SKINICONDESC sid = { 0 }; + sid.section.t = const_cast(szSection); + sid.description.t = const_cast(szDescription); sid.pszName = const_cast(szIconName); - sid.pszDefaultFile = NULL; + sid.defaultFile.a = NULL; sid.iDefaultIndex = 0; sid.hDefaultIcon = hDefaultIcon; sid.cx = cx; -- cgit v1.2.3