summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 20:32:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 20:32:13 +0000
commit1860018b201d995ed051c0affb72d5a1d09fa02e (patch)
tree1ee096c43578fdf5694e5487d672830f810f186c /src
parent7300094417302d82aa4f3f6e469f91d8facf4f26 (diff)
SKINICONDESC initialization - end of story
git-svn-id: http://svn.miranda-ng.org/main/trunk@2598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdchat/src/options.cpp3
-rw-r--r--src/core/stdmsg/src/globals.cpp3
-rw-r--r--src/modules/extraicons/extraicons.cpp3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/core/stdchat/src/options.cpp b/src/core/stdchat/src/options.cpp
index 8fa46bd0ed..fae3bdd567 100644
--- a/src/core/stdchat/src/options.cpp
+++ b/src/core/stdchat/src/options.cpp
@@ -480,8 +480,7 @@ void AddIcons(void)
TCHAR szFile[MAX_PATH];
GetModuleFileName(g_hInst, szFile, MAX_PATH);
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ SKINICONDESC sid = { sizeof(sid) };
sid.ptszDefaultFile = szFile;
sid.flags = SIDF_PATH_TCHAR;
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp
index 7bc0b29a31..d60ce6d3fc 100644
--- a/src/core/stdmsg/src/globals.cpp
+++ b/src/core/stdmsg/src/globals.cpp
@@ -50,8 +50,7 @@ static void InitIcons(void)
TCHAR szFile[MAX_PATH];
GetModuleFileName(g_hInst, szFile, SIZEOF(szFile));
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ SKINICONDESC sid = { sizeof(sid) };
sid.ptszDefaultFile = szFile;
sid.pszName = szSettingName;
sid.pszSection = LPGEN("Messaging");
diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp
index b491893264..a1cfbf8c57 100644
--- a/src/modules/extraicons/extraicons.cpp
+++ b/src/modules/extraicons/extraicons.cpp
@@ -528,8 +528,7 @@ void LoadExtraIconsModule()
TCHAR tszFile[MAX_PATH];
GetModuleFileName(NULL, tszFile, MAX_PATH);
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ SKINICONDESC sid = { sizeof(sid) };
sid.flags = SIDF_PATH_TCHAR;
sid.ptszDefaultFile = tszFile;
sid.pszSection = "Contact List";