summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-30 21:40:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-30 21:40:51 +0300
commit81af1660759b655e0e65bf2f955ef50e87975a13 (patch)
tree3fe4b9669bd6232abb99725ed1fa7560e6f19584 /plugins
parentd049eb6dd9de7f10469b62e67afc1485d832b0c3 (diff)
minor code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DbEditorPP/src/main.cpp6
-rw-r--r--plugins/MenuItemEx/src/main.cpp3
-rw-r--r--plugins/SmileyAdd/src/smileyroutines.cpp1
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp7
4 files changed, 4 insertions, 13 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp
index 0ec3a08be8..fe31957c25 100644
--- a/plugins/DbEditorPP/src/main.cpp
+++ b/plugins/DbEditorPP/src/main.cpp
@@ -130,13 +130,11 @@ int ModulesLoaded(WPARAM, LPARAM)
hUserMenu = Menu_AddContactMenuItem(&mi);
// Register hotkeys
- _A2T text(modFullname);
HOTKEYDESC hkd = {};
- hkd.dwFlags = HKD_UNICODE;
hkd.pszName = "hk_dbepp_open";
hkd.pszService = "DBEditorpp/MenuCommand";
- hkd.szDescription.w = LPGENW("Open Database Editor");
- hkd.szSection.w = text;
+ hkd.szSection.a = modFullname;
+ hkd.szDescription.a = LPGEN("Open Database Editor");
hkd.DefHotKey = HOTKEYCODE(HOTKEYF_SHIFT | HOTKEYF_EXT, 'D');
Hotkey_Register(&hkd);
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index c8534b46bb..2872e57272 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -908,8 +908,7 @@ static void TabsrmmButtonsModify(MCONTACT hContact)
{
if (!DirectoryExists(hContact))
{
- BBButton bbd = { 0 };
- bbd.dwButtonID = 0;
+ BBButton bbd = {};
bbd.pszModuleName = MODULENAME;
bbd.bbbFlags = BBSF_DISABLED | BBSF_HIDDEN;
Srmm_SetButtonState(hContact, &bbd);
diff --git a/plugins/SmileyAdd/src/smileyroutines.cpp b/plugins/SmileyAdd/src/smileyroutines.cpp
index a56be87b9f..b893fca9fa 100644
--- a/plugins/SmileyAdd/src/smileyroutines.cpp
+++ b/plugins/SmileyAdd/src/smileyroutines.cpp
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <tchar.h>
-ISmileyBase* CreateSmileyObject(SmileyType *sml);
ISmileyBase* CreateAniSmileyObject(SmileyType *sml, COLORREF clr, bool ishpp);
bool g_HiddenTextSupported = true;
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 29b8826dd0..298fc77b1b 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -1535,12 +1535,6 @@ int CSrmmWindow::OnFilter(MSGFILTER *pFilter)
bool isCtrl, isShift, isAlt;
KbdState(isShift, isCtrl, isAlt);
- MSG message;
- message.hwnd = m_hwnd;
- message.message = msg;
- message.lParam = lp;
- message.wParam = wp;
-
if (msg == WM_SYSKEYUP) {
if (wp == VK_MENU)
if (!m_bkeyProcessed && !(GetKeyState(VK_CONTROL) & 0x8000) && !(GetKeyState(VK_SHIFT) & 0x8000) && !(lp & (1 << 24)))
@@ -1550,6 +1544,7 @@ int CSrmmWindow::OnFilter(MSGFILTER *pFilter)
}
if ((msg == WM_KEYDOWN || msg == WM_SYSKEYDOWN) && !(GetKeyState(VK_RMENU) & 0x8000)) {
+ MSG message = { m_hwnd, msg, wp, lp };
LRESULT mim_hotkey_check = Hotkey_Check(&message, TABSRMM_HK_SECTION_IM);
if (mim_hotkey_check)
m_bkeyProcessed = true;