diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-15 13:41:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-15 13:41:50 +0300 |
commit | 0bc6905beb27cee9e288e6680e4ce6a85bcfd8e8 (patch) | |
tree | f4d2882dd4075123ce4fa5407388982915f18da3 /protocols/IRCG/src/windows.cpp | |
parent | 7ba28b7ff398cc9a018237407eebbf5a91382018 (diff) |
IRC: more code cleaning
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r-- | protocols/IRCG/src/windows.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index 9b91719ad3..4dc846af9b 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -746,14 +746,14 @@ void CQuestionDlg::OnOk(CCtrlButton*) if (p2) {
p2++;
if (k == 2 || (*p2 != ',' || (*p2 == ',' && p2[1] != '\"')))
- *p2 = '\0';
+ *p2 = 0;
else
p2 += 2;
p1 = p2;
}
}
}
- else *p1 = '\0';
+ else *p1 = 0;
}
CMStringW S('\0', j + 2);
@@ -843,15 +843,15 @@ LRESULT CALLBACK MgrEditSubclassProc(HWND m_hwnd, UINT msg, WPARAM wParam, LPARA char w[2];
if (wParam == 11) {
w[0] = 3;
- w[1] = '\0';
+ w[1] = 0;
}
if (wParam == 2) {
w[0] = 2;
- w[1] = '\0';
+ w[1] = 0;
}
if (wParam == 21) {
w[0] = 31;
- w[1] = '\0';
+ w[1] = 0;
}
SendMessage(m_hwnd, EM_REPLACESEL, false, (LPARAM)w);
SendMessage(m_hwnd, EM_SCROLLCARET, 0, 0);
@@ -1081,8 +1081,8 @@ void CManagerDlg::OnApplyModes(CCtrlButton*) GetDlgItemText(m_hwnd, IDC_CAPTION, window, _countof(window));
CHANNELINFO *wi = (CHANNELINFO*)Chat_GetUserInfo(m_proto->m_szModuleName, window);
if (wi) {
- wchar_t toadd[10]; *toadd = '\0';
- wchar_t toremove[10]; *toremove = '\0';
+ wchar_t toadd[10]; *toadd = 0;
+ wchar_t toremove[10]; *toremove = 0;
CMStringW appendixadd = L"";
CMStringW appendixremove = L"";
if (wi->pszMode && wcschr(wi->pszMode, 't')) {
@@ -1308,7 +1308,7 @@ void CManagerDlg::InitManager(int mode, const wchar_t* window) bool add = false;
wchar_t* p1 = wi->pszMode;
if (p1) {
- while (*p1 != '\0' && *p1 != ' ') {
+ while (*p1 != 0 && *p1 != ' ') {
if (*p1 == '+')
add = true;
if (*p1 == '-')
|