diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
commit | 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 (patch) | |
tree | 035f7a89aeeb3cf07c9d45e495a5ec9fbf3b1d41 /src/core | |
parent | b6330f119c9f253d470dac46b20335811a8e0676 (diff) |
warning fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/chat_window.cpp | 52 | ||||
-rw-r--r-- | src/core/stdmsg/src/stdafx.h | 22 | ||||
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 2 |
3 files changed, 38 insertions, 38 deletions
diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index 5edfaf7d9e..eac363e812 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -787,7 +787,7 @@ LRESULT CALLBACK CChatRoomDlg::NicklistSubclassProc(HWND hwnd, UINT msg, WPARAM return mir_callNextSubclass(hwnd, NicklistSubclassProc, msg, wParam, lParam); } -int GetTextPixelSize(wchar_t* pszText, HFONT hFont, BOOL bWidth) +int GetTextPixelSize(wchar_t *pszText, HFONT hFont, BOOL bWidth) { if (!pszText || !hFont) return 0; @@ -801,7 +801,7 @@ int GetTextPixelSize(wchar_t* pszText, HFONT hFont, BOOL bWidth) return bWidth ? rc.right - rc.left : rc.bottom - rc.top; } -static void __cdecl phase2(void * lParam) +static void __cdecl phase2(void *lParam) { SESSION_INFO *si = (SESSION_INFO*)lParam; Sleep(30); @@ -843,24 +843,24 @@ CChatRoomDlg::CChatRoomDlg(SESSION_INFO *si) : m_autoClose = 0; m_forceResizable = true; - m_btnBold.OnClick = Callback(this, &CChatRoomDlg::OnClick_Bold); - m_btnItalic.OnClick = Callback(this, &CChatRoomDlg::OnClick_Bold); - m_btnUnderline.OnClick = Callback(this, &CChatRoomDlg::OnClick_Bold); + m_btnBold.OnClick = Callback(this, &CChatRoomDlg::onClick_Bold); + m_btnItalic.OnClick = Callback(this, &CChatRoomDlg::onClick_Bold); + m_btnUnderline.OnClick = Callback(this, &CChatRoomDlg::onClick_Bold); - m_btnColor.OnClick = Callback(this, &CChatRoomDlg::OnClick_Color); - m_btnBkColor.OnClick = Callback(this, &CChatRoomDlg::OnClick_BkColor); + m_btnColor.OnClick = Callback(this, &CChatRoomDlg::onClick_Color); + m_btnBkColor.OnClick = Callback(this, &CChatRoomDlg::onClick_BkColor); - m_btnOk.OnClick = Callback(this, &CChatRoomDlg::OnClick_Ok); + m_btnOk.OnClick = Callback(this, &CChatRoomDlg::onClick_Ok); - m_btnFilter.OnClick = Callback(this, &CChatRoomDlg::OnClick_Filter); - m_btnHistory.OnClick = Callback(this, &CChatRoomDlg::OnClick_History); - m_btnChannelMgr.OnClick = Callback(this, &CChatRoomDlg::OnClick_Options); - m_btnNickList.OnClick = Callback(this, &CChatRoomDlg::OnClick_NickList); + m_btnFilter.OnClick = Callback(this, &CChatRoomDlg::onClick_Filter); + m_btnHistory.OnClick = Callback(this, &CChatRoomDlg::onClick_History); + m_btnChannelMgr.OnClick = Callback(this, &CChatRoomDlg::onClick_Options); + m_btnNickList.OnClick = Callback(this, &CChatRoomDlg::onClick_NickList); - m_nickList.OnDblClick = Callback(this, &CChatRoomDlg::OnListDblclick); + m_nickList.OnDblClick = Callback(this, &CChatRoomDlg::onListDblclick); - m_splitterX.OnChange = Callback(this, &CChatRoomDlg::OnSplitterX); - m_splitterY.OnChange = Callback(this, &CChatRoomDlg::OnSplitterY); + m_splitterX.OnChange = Callback(this, &CChatRoomDlg::onSplitterX); + m_splitterY.OnChange = Callback(this, &CChatRoomDlg::onSplitterY); m_iSplitterX = g_Settings.iSplitterX; m_iSplitterY = g_Settings.iSplitterY; @@ -943,7 +943,7 @@ void CChatRoomDlg::OnDestroy() NotifyLocalWinEvent(m_hContact, m_hwnd, MSG_WINDOW_EVT_CLOSE); } -void CChatRoomDlg::OnClick_Bold(CCtrlButton *pButton) +void CChatRoomDlg::onClick_Bold(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -960,7 +960,7 @@ void CChatRoomDlg::OnClick_Bold(CCtrlButton *pButton) m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf); } -void CChatRoomDlg::OnClick_Color(CCtrlButton *pButton) +void CChatRoomDlg::onClick_Color(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -985,7 +985,7 @@ void CChatRoomDlg::OnClick_Color(CCtrlButton *pButton) } } -void CChatRoomDlg::OnClick_BkColor(CCtrlButton *pButton) +void CChatRoomDlg::onClick_BkColor(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -1010,7 +1010,7 @@ void CChatRoomDlg::OnClick_BkColor(CCtrlButton *pButton) } } -void CChatRoomDlg::OnClick_Filter(CCtrlButton *pButton) +void CChatRoomDlg::onClick_Filter(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -1023,7 +1023,7 @@ void CChatRoomDlg::OnClick_Filter(CCtrlButton *pButton) RedrawLog(); } -void CChatRoomDlg::OnClick_History(CCtrlButton *pButton) +void CChatRoomDlg::onClick_History(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -1033,7 +1033,7 @@ void CChatRoomDlg::OnClick_History(CCtrlButton *pButton) ShellExecute(m_hwnd, nullptr, pci->GetChatLogsFilename(m_si, 0), nullptr, nullptr, SW_SHOW); } -void CChatRoomDlg::OnClick_NickList(CCtrlButton *pButton) +void CChatRoomDlg::onClick_NickList(CCtrlButton *pButton) { if (!pButton->Enabled() || m_si->iType == GCW_SERVER) return; @@ -1045,13 +1045,13 @@ void CChatRoomDlg::OnClick_NickList(CCtrlButton *pButton) SendMessage(m_hwnd, WM_SIZE, 0, 0); } -void CChatRoomDlg::OnClick_Options(CCtrlButton *pButton) +void CChatRoomDlg::onClick_Options(CCtrlButton *pButton) { if (pButton->Enabled()) DoEventHook(GC_USER_CHANMGR, nullptr, nullptr, 0); } -void CChatRoomDlg::OnClick_Ok(CCtrlButton *pButton) +void CChatRoomDlg::onClick_Ok(CCtrlButton *pButton) { if (!pButton->Enabled()) return; @@ -1084,7 +1084,7 @@ void CChatRoomDlg::OnClick_Ok(CCtrlButton *pButton) SetFocus(m_message.GetHwnd()); } -void CChatRoomDlg::OnListDblclick(CCtrlListBox*) +void CChatRoomDlg::onListDblclick(CCtrlListBox*) { TVHITTESTINFO hti; hti.pt.x = (short)LOWORD(GetMessagePos()); @@ -1105,7 +1105,7 @@ void CChatRoomDlg::OnListDblclick(CCtrlListBox*) else DoEventHook(GC_USER_PRIVMESS, ui, nullptr, 0); } -void CChatRoomDlg::OnSplitterX(CSplitter *pSplitter) +void CChatRoomDlg::onSplitterX(CSplitter *pSplitter) { RECT rc; GetClientRect(m_hwnd, &rc); @@ -1118,7 +1118,7 @@ void CChatRoomDlg::OnSplitterX(CSplitter *pSplitter) g_Settings.iSplitterX = m_iSplitterX; } -void CChatRoomDlg::OnSplitterY(CSplitter *pSplitter) +void CChatRoomDlg::onSplitterY(CSplitter *pSplitter) { RECT rc; GetClientRect(m_hwnd, &rc); diff --git a/src/core/stdmsg/src/stdafx.h b/src/core/stdmsg/src/stdafx.h index 1f70555663..7e7f77e9c7 100644 --- a/src/core/stdmsg/src/stdafx.h +++ b/src/core/stdmsg/src/stdafx.h @@ -251,19 +251,19 @@ public: virtual void UpdateStatusBar() override;
virtual void UpdateTitle() override;
- void OnClick_Bold(CCtrlButton*);
- void OnClick_Color(CCtrlButton*);
- void OnClick_BkColor(CCtrlButton*);
+ void onClick_Bold(CCtrlButton*);
+ void onClick_Color(CCtrlButton*);
+ void onClick_BkColor(CCtrlButton*);
- void OnClick_Ok(CCtrlButton*);
+ void onClick_Ok(CCtrlButton*);
- void OnClick_Filter(CCtrlButton*);
- void OnClick_History(CCtrlButton*);
- void OnClick_Options(CCtrlButton*);
- void OnClick_NickList(CCtrlButton*);
+ void onClick_Filter(CCtrlButton*);
+ void onClick_History(CCtrlButton*);
+ void onClick_Options(CCtrlButton*);
+ void onClick_NickList(CCtrlButton*);
- void OnListDblclick(CCtrlListBox*);
+ void onListDblclick(CCtrlListBox*);
- void OnSplitterX(CSplitter*);
- void OnSplitterY(CSplitter*);
+ void onSplitterX(CSplitter*);
+ void onSplitterY(CSplitter*);
};
diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index d8d2b5bdd5..b3f9574f52 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -369,7 +369,7 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) // fix the "fixed" positions int tabCount = m_tab.GetCount(); for (int i = 0; i < tabCount; i++) { - CChatRoomDlg *pDlg = (CChatRoomDlg*)m_tab.GetNthPage(i); + pDlg = (CChatRoomDlg*)m_tab.GetNthPage(i); if (pDlg == nullptr) continue; |