From f056d6596882aa7cfecc21a61e8ef48f2b514460 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Aug 2015 09:08:29 +0000 Subject: fix for all remaining warnings like 'blablabla hides blablabla' git-svn-id: http://svn.miranda-ng.org/main/trunk@15052 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/options.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'protocols/Yahoo/src/options.cpp') diff --git a/protocols/Yahoo/src/options.cpp b/protocols/Yahoo/src/options.cpp index ce0a1b613e..284dca5c0b 100644 --- a/protocols/Yahoo/src/options.cpp +++ b/protocols/Yahoo/src/options.cpp @@ -211,15 +211,12 @@ YAHOO_DEFAULT_JAPAN_LOGIN_SERVER : bool reconnectRequired = false; char str[128]; GetDlgItemTextA(hwndDlg, IDC_LOGINSERVER, str, _countof(str)); - - DBVARIANT dbv; - if (ppro->getString(YAHOO_LOGINSERVER, &dbv)) { - reconnectRequired = true; - } - else { - if (mir_strcmp(str, dbv.pszVal)) + { + ptrA szServer(ppro->getStringA(YAHOO_LOGINSERVER)); + if (szServer == NULL) + reconnectRequired = true; + else if (mir_strcmp(str, szServer)) reconnectRequired = true; - db_free(&dbv); } ppro->setString(YAHOO_LOGINSERVER, str); @@ -271,7 +268,7 @@ static INT_PTR CALLBACK DlgProcYahooOptsIgnore(HWND hwndDlg, UINT msg, WPARAM wP LOG(("[DlgProcYahooOptsIgnore] Grabbing current ignore list...")) l = (YList *)ppro->GetIgnoreList(); while (l != NULL) { - struct yahoo_buddy *b = (struct yahoo_buddy *) l->data; + yahoo_buddy *b = (yahoo_buddy *) l->data; LOG(("[DlgProcYahooOptsIgnore] Buddy: %s", b->id)) SendDlgItemMessageA(hwndDlg, IDC_YIGN_LIST, LB_ADDSTRING, 0, (LPARAM)b->id); -- cgit v1.2.3