diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-25 12:00:07 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-25 12:00:07 +0300 |
commit | 70ac346e02ac4e7125bdddd1012d622c43dbd5c6 (patch) | |
tree | 56e2dd4e0501a1237b90a151447d723833d7a4f5 /plugins/TabSRMM/src/msgs.cpp | |
parent | 0bb5a6b57b308c1bd7463e767c6b0dc05acf7571 (diff) |
minor code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 28bd1946af..457ce4b621 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -145,8 +145,7 @@ INT_PTR SendMessageCommand_Worker(MCONTACT hContact, LPCSTR pszMsg, bool isWchar if (0 == (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND))
return 0;
- auto *pDlg = Srmm_FindDialog(hContact);
- if (pDlg) {
+ if (auto *pDlg = Srmm_FindDialog(hContact)) {
if (pszMsg) {
HWND hEdit = GetDlgItem(pDlg->GetHwnd(), IDC_SRMM_MESSAGE);
SendMessage(hEdit, EM_SETSEL, -1, GetWindowTextLength(hEdit));
|