diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-19 20:08:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-19 20:08:21 +0000 |
commit | e12cc9f9eb3fcd0e3a0de3de82527a7d9cbc9cc1 (patch) | |
tree | bb15ed1aae45e3f92841d98ffa3229c2fbac9914 /plugins/HistoryStats/src/bandctrl.cpp | |
parent | 524aabc23effc3b60cf5b5c891bf66ceb6954ef7 (diff) |
- fixes #820 (Crash because HistoryStats);
- code cleaning;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@11535 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/bandctrl.cpp')
-rw-r--r-- | plugins/HistoryStats/src/bandctrl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/HistoryStats/src/bandctrl.cpp b/plugins/HistoryStats/src/bandctrl.cpp index a377717efb..d1b6c00a7f 100644 --- a/plugins/HistoryStats/src/bandctrl.cpp +++ b/plugins/HistoryStats/src/bandctrl.cpp @@ -10,15 +10,15 @@ void BandCtrl::setLayout(int nLayout) SendMessage(m_hBandWnd, BCM_SETLAYOUT, nLayout, 0);
}
-HANDLE BandCtrl::addButton(DWORD dwFlags, HICON hIcon, INT_PTR dwData, const TCHAR* szTooltip /* = NULL */, const TCHAR* szText /* = NULL */)
+HANDLE BandCtrl::addButton(DWORD dwFlags, HICON hIcon, INT_PTR dwData, const TCHAR *szTooltip, const TCHAR *szText)
{
BCBUTTON bcb;
bcb.dwFlags = dwFlags | BCF_ICON | BCF_DATA | (szTooltip ? BCF_TOOLTIP : 0) | (szText ? BCF_TEXT : 0);
bcb.hIcon = hIcon;
bcb.dwData = dwData;
- bcb.szTooltip = const_cast<TCHAR*>(szTooltip);
- bcb.szText = const_cast<TCHAR*>(szText);
+ bcb.m_szTooltip = szTooltip;
+ bcb.m_szText = szText;
return reinterpret_cast<HANDLE>(SendMessage(m_hBandWnd, BCM_ADDBUTTON, 0, reinterpret_cast<LPARAM>(&bcb)));
}
|