summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/jabber_opt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-16 14:34:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-16 14:34:41 +0000
commit35489ce3659220b4ebd25d1b3ab0258115cf10a4 (patch)
tree611d9ebaa2f85129af43492368381c55ccbb1a5e /protocols/Tlen/src/jabber_opt.cpp
parent2611fbb22f7e186cb989f2b16133dad5215e41e1 (diff)
Tlen:
- custom base64 removed; - strict prototype verification git-svn-id: http://svn.miranda-ng.org/main/trunk@5719 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src/jabber_opt.cpp')
-rw-r--r--protocols/Tlen/src/jabber_opt.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/protocols/Tlen/src/jabber_opt.cpp b/protocols/Tlen/src/jabber_opt.cpp
index ccdb6369d9..f73ac40f68 100644
--- a/protocols/Tlen/src/jabber_opt.cpp
+++ b/protocols/Tlen/src/jabber_opt.cpp
@@ -82,19 +82,15 @@ static void MarkChanges(int i, HWND hWnd) {
}
-int TlenOptionsInit(void *ptr, WPARAM wParam, LPARAM lParam)
+int TlenProtocol::OptionsInit(WPARAM wParam, LPARAM lParam)
{
- int i;
- TlenProtocol *proto = (TlenProtocol *)ptr;
-
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.cbSize = sizeof(odp);
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = hInst;
odp.ptszGroup = LPGENT("Network");
- odp.ptszTitle = proto->m_tszUserName;
+ odp.ptszTitle = m_tszUserName;
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
- odp.dwInitParam = (LPARAM)proto;
- for (i = 0; i < SIZEOF(tabPages); i++) {
+ odp.dwInitParam = (LPARAM)this;
+ for (int i = 0; i < SIZEOF(tabPages); i++) {
odp.pszTemplate = MAKEINTRESOURCEA(tabPages[i].dlgId);
odp.pfnDlgProc = tabPages[i].dlgProc;
odp.ptszTab = tabPages[i].tabName;