summaryrefslogtreecommitdiff
path: root/plugins/Chat/options.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-24 12:33:43 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-24 12:33:43 +0000
commit6d99499879c434f212f4c02e751f730eca610983 (patch)
tree45fe6c186a4b89b1b0565a321b9ce4f166b873a8 /plugins/Chat/options.cpp
parent7a6399d054da0e2e21d00b110b885e15b278d3b7 (diff)
Chat:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat/options.cpp')
-rw-r--r--plugins/Chat/options.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Chat/options.cpp b/plugins/Chat/options.cpp
index c80b0c1871..77989d4b39 100644
--- a/plugins/Chat/options.cpp
+++ b/plugins/Chat/options.cpp
@@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_fontservice.h>
-extern HANDLE g_hInst;
extern HBRUSH hEditBkgBrush;
extern HBRUSH hListBkgBrush;
extern HBRUSH hListSelectedBkgBrush;
@@ -755,7 +754,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_HIGHLIGHTWORDS));
if ( iLen > 0 ) {
- TCHAR *ptszText = mir_alloc((iLen+2) * sizeof(TCHAR));
+ TCHAR *ptszText = (TCHAR *)mir_alloc((iLen+2) * sizeof(TCHAR));
TCHAR *p2 = NULL;
if(ptszText) {
@@ -773,7 +772,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_LOGDIRECTORY));
if ( iLen > 0 ) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_LOGDIRECTORY, pszText,iLen + 1);
DBWriteContactSettingTString(NULL, "Chat", "LogDirectory", pszText);
}
@@ -783,7 +782,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_LOGTIMESTAMP));
if ( iLen > 0 ) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_LOGTIMESTAMP, pszText, iLen+1);
DBWriteContactSettingTString(NULL, "Chat", "LogTimestamp", pszText);
}
@@ -791,7 +790,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_TIMESTAMP));
if ( iLen > 0 ) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_TIMESTAMP, pszText, iLen+1);
DBWriteContactSettingTString(NULL, "Chat", "HeaderTime", pszText);
}
@@ -799,7 +798,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_INSTAMP));
if ( iLen > 0 ) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_INSTAMP, pszText,iLen+1);
DBWriteContactSettingTString(NULL, "Chat", "HeaderIncoming", pszText);
}
@@ -807,7 +806,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_OUTSTAMP));
if ( iLen > 0 ) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_OUTSTAMP, pszText,iLen+1);
DBWriteContactSettingTString(NULL, "Chat", "HeaderOutgoing", pszText);
}
@@ -828,7 +827,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_GROUP));
if (iLen > 0) {
- pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR));
GetDlgItemText(hwndDlg, IDC_GROUP, pszText, iLen+1);
DBWriteContactSettingTString(NULL, "Chat", "AddToGroup", pszText);
}