summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_search.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-02-15 10:57:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-02-15 10:57:54 +0000
commit58f3f2d387c7b3a020eaf4f0b30bf70522adcfad (patch)
tree0e09137c3b8b84a79616a9c65df9eacff377d777 /protocols/Tox/src/tox_search.cpp
parent60b391e2a55749c0cf9e96f53515673a0898a0d5 (diff)
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12120 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_search.cpp')
-rw-r--r--protocols/Tox/src/tox_search.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp
index d62eccd593..b7aa7ec9df 100644
--- a/protocols/Tox/src/tox_search.cpp
+++ b/protocols/Tox/src/tox_search.cpp
@@ -31,7 +31,6 @@ void CToxProto::SearchByNameAsync(void *arg)
char dnsQuery[512];
mir_snprintf(dnsQuery, 512, "_%s._tox.%s", dnsString, server->domain);
- bool success = false;
DNS_RECORDA *record = NULL;
DnsQuery_A(dnsQuery, DNS_TYPE_TEXT, 0, NULL, (PDNS_RECORD*)&record, NULL);
while (record)
@@ -69,7 +68,7 @@ void CToxProto::SearchByNameAsync(void *arg)
mir_free(arg);
}
-INT_PTR CToxProto::SearchDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+INT_PTR CToxProto::SearchDlgProc(HWND hwnd, UINT uMsg, WPARAM, LPARAM lParam)
{
CToxProto *proto = (CToxProto*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
@@ -91,11 +90,11 @@ INT_PTR CToxProto::SearchDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
return FALSE;
}
-HANDLE __cdecl CToxProto::SearchBasic(const PROTOCHAR* id) { return 0; }
+HANDLE __cdecl CToxProto::SearchBasic(const PROTOCHAR*) { return 0; }
-HANDLE __cdecl CToxProto::SearchByEmail(const PROTOCHAR* email) { return 0; }
+HANDLE __cdecl CToxProto::SearchByEmail(const PROTOCHAR*) { return 0; }
-HANDLE __cdecl CToxProto::SearchByName(const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName) { return 0; }
+HANDLE __cdecl CToxProto::SearchByName(const PROTOCHAR*, const PROTOCHAR*, const PROTOCHAR*) { return 0; }
HWND __cdecl CToxProto::SearchAdvanced(HWND owner)
{
@@ -115,7 +114,6 @@ HWND __cdecl CToxProto::SearchAdvanced(HWND owner)
if (std::regex_search(query, match, regex))
{
std::string address = match[1];
- MCONTACT hContact = GetContact(address.c_str());
PROTOSEARCHRESULT psr = { sizeof(psr) };
psr.flags = PSR_TCHAR;