From eccbb5307a048e70ac4adb0d3fd333be28245fa8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:21:33 +0300 Subject: massive cleanup of useless cbSize fields --- plugins/HistorySweeperLight/src/historysweeperlight.cpp | 1 - plugins/HistorySweeperLight/src/main.cpp | 4 ++-- plugins/HistorySweeperLight/src/options.cpp | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/HistorySweeperLight') diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.cpp b/plugins/HistorySweeperLight/src/historysweeperlight.cpp index e9b7316f25..87e42974f6 100644 --- a/plugins/HistorySweeperLight/src/historysweeperlight.cpp +++ b/plugins/HistorySweeperLight/src/historysweeperlight.cpp @@ -238,7 +238,6 @@ void SetSrmmIcon(MCONTACT hContact) int sweep = db_get_b(hContact, ModuleName, "SweepHistory", 0); StatusIconData sid = { 0 }; - sid.cbSize = sizeof(sid); sid.szModule = ModuleName; for (int i = 0; i < 4; i++) { diff --git a/plugins/HistorySweeperLight/src/main.cpp b/plugins/HistorySweeperLight/src/main.cpp index 990f957d9c..ade9f3e678 100644 --- a/plugins/HistorySweeperLight/src/main.cpp +++ b/plugins/HistorySweeperLight/src/main.cpp @@ -55,7 +55,7 @@ int OnIconPressed(WPARAM hContact, LPARAM lParam) if (!(sicd->flags & MBCF_RIGHTBUTTON) && !mir_strcmp(sicd->szModule, ModuleName) && db_get_b(NULL, ModuleName, "ChangeInMW", 0)) { int nh = sicd->dwId; - StatusIconData sid = { sizeof(sid) }; + StatusIconData sid = {}; sid.szModule = ModuleName; sid.dwId = nh; sid.flags = MBF_HIDDEN; @@ -75,7 +75,7 @@ int OnModulesLoaded(WPARAM, LPARAM) { int sweep = db_get_b(NULL, ModuleName, "SweepHistory", 0); - StatusIconData sid = { sizeof(sid) }; + StatusIconData sid = {}; sid.szModule = ModuleName; sid.hIcon = LoadIconEx("actG"); diff --git a/plugins/HistorySweeperLight/src/options.cpp b/plugins/HistorySweeperLight/src/options.cpp index 36dcd48c01..d2b68c7a12 100644 --- a/plugins/HistorySweeperLight/src/options.cpp +++ b/plugins/HistorySweeperLight/src/options.cpp @@ -169,7 +169,6 @@ void SaveSettings(HWND hwndDlg) int st = db_get_b(NULL, ModuleName, "SweepHistory", 0); StatusIconData sid = { 0 }; - sid.cbSize = sizeof(sid); sid.szModule = ModuleName; sid.dwId = 0; sid.hIcon = LoadIconEx("actG"); -- cgit v1.2.3