summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-29 12:48:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-29 12:48:12 +0300
commit83b1ddb1ac3352011cb98c28878ebb777547b0fd (patch)
treeffa4dd4b45d4243244ed916ebe4fdc9563e6ac48
parent9f627b4aebf1724aa223d4f6061a44be46544b50 (diff)
code cleaning
-rw-r--r--plugins/SmileyAdd/src/dlgboxsubclass.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
index 377b77c729..e35dca7109 100644
--- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp
+++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
@@ -126,6 +126,7 @@ static int MsgDlgHook(WPARAM uType, LPARAM lParam)
{
auto *pDlg = (CSrmmBaseDialog *)lParam;
auto hwndLog = pDlg->log()->GetHwnd();
+ auto hwndInput = pDlg->GetInput();
switch (uType) {
case MSG_WINDOW_EVT_OPENING:
@@ -137,21 +138,21 @@ static int MsgDlgHook(WPARAM uType, LPARAM lParam)
g_MsgWndList.insert(msgwnd);
}
- SetRichOwnerCallback(pDlg->GetHwnd(), pDlg->GetInput(), hwndLog);
+ SetRichOwnerCallback(pDlg->GetHwnd(), hwndInput, hwndLog);
if (hwndLog)
SetRichCallback(hwndLog, pDlg->m_hContact, false, false);
- if (pDlg->GetInput())
- SetRichCallback(pDlg->GetInput(), pDlg->m_hContact, false, false);
+ if (hwndInput)
+ SetRichCallback(hwndInput, pDlg->m_hContact, false, false);
break;
case MSG_WINDOW_EVT_OPEN:
- SetRichOwnerCallback(pDlg->GetHwnd(), pDlg->GetInput(), hwndLog);
+ SetRichOwnerCallback(pDlg->GetHwnd(), hwndInput, hwndLog);
if (hwndLog)
SetRichCallback(hwndLog, pDlg->m_hContact, true, true);
- if (pDlg->GetInput()) {
- SetRichCallback(pDlg->GetInput(), pDlg->m_hContact, true, true);
- SendMessage(pDlg->GetInput(), WM_REMAKERICH, 0, 0);
+ if (hwndInput) {
+ SetRichCallback(hwndInput, pDlg->m_hContact, true, true);
+ SendMessage(hwndInput, WM_REMAKERICH, 0, 0);
}
break;