From 913eb113dd70d059037424bfc6cf231dee896ac3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 Jun 2013 09:52:58 +0000 Subject: code cleaning & standardization git-svn-id: http://svn.miranda-ng.org/main/trunk@4952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skypekit/search.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'protocols/Skype/src/skypekit/search.cpp') diff --git a/protocols/Skype/src/skypekit/search.cpp b/protocols/Skype/src/skypekit/search.cpp index f6f035a3a1..f1b20563aa 100644 --- a/protocols/Skype/src/skypekit/search.cpp +++ b/protocols/Skype/src/skypekit/search.cpp @@ -1,9 +1,10 @@ #include "..\skype.h" #include "search.h" -CContactSearch::CContactSearch(unsigned int oid, SERootObject* root) : ContactSearch(oid, root) +CContactSearch::CContactSearch(unsigned int oid, CSkypeProto* _ppro) : + ContactSearch(oid, _ppro), + proto(_ppro) { - this->proto = NULL; } void CContactSearch::OnChange(int prop) @@ -23,8 +24,7 @@ void CContactSearch::OnChange(int prop) void CContactSearch::OnNewResult(const ContactRef &contact, const uint &rankValue) { - if (this->proto) - proto->OnContactFinded(contact, this->hSearch); + proto->OnContactFinded(contact, this->hSearch); } void CContactSearch::BlockWhileSearch() @@ -34,9 +34,3 @@ void CContactSearch::BlockWhileSearch() while (!this->isSeachFinished && !this->isSeachFailed) Sleep(1); } - -void CContactSearch::SetProtoInfo(CSkypeProto* proto, HANDLE hSearch) -{ - this->proto = proto; - this->hSearch = hSearch; -} -- cgit v1.2.3