diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-16 14:34:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-16 14:34:41 +0000 |
commit | 35489ce3659220b4ebd25d1b3ab0258115cf10a4 (patch) | |
tree | 611d9ebaa2f85129af43492368381c55ccbb1a5e /protocols/Tlen/src/jabber_opt.cpp | |
parent | 2611fbb22f7e186cb989f2b16133dad5215e41e1 (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.cpp | 14 |
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;
|