mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Fix clang warnings for
../../../trunk/libresapi/src/api/FileSearchHandler.cpp:53:66: warning: unused parameter 'pid' [-Wunused-parameter] void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& pid,uint32_t search_id, const std::list<TurtleFileInfo>& files) ^ In file included from ../../../trunk/libresapi/src/api/ FileSearchHandler.cpp:24: ../../../trunk/libresapi/src/api/FileSearchHandler.h:48:15: warning: private field 'mTurtle' is not used [-Wunused-private-field] RsTurtle* mTurtle; ^
This commit is contained in:
parent
dd7c658ed1
commit
54b708089f
@ -32,8 +32,8 @@
|
||||
namespace resource_api
|
||||
{
|
||||
|
||||
FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle *turtle, RsFiles *files):
|
||||
mStateTokenServer(sts), mNotify(notify), mTurtle(turtle), mRsFiles(files),
|
||||
FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle */*turtle*/, RsFiles *files):
|
||||
mStateTokenServer(sts), mNotify(notify)/*, mTurtle(turtle)*/, mRsFiles(files),
|
||||
mMtx("FileSearchHandler")
|
||||
{
|
||||
mNotify->registerNotifyClient(this);
|
||||
@ -50,7 +50,7 @@ FileSearchHandler::~FileSearchHandler()
|
||||
mStateTokenServer->discardToken(mSearchesStateToken);
|
||||
}
|
||||
|
||||
void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& pid,uint32_t search_id, const std::list<TurtleFileInfo>& files)
|
||||
void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& /*pid*/,uint32_t search_id, const std::list<TurtleFileInfo>& files)
|
||||
{
|
||||
RS_STACK_MUTEX(mMtx); // ********** LOCKED **********
|
||||
std::map<uint32_t, Search>::iterator mit = mSearches.find(search_id);
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
|
||||
StateTokenServer* mStateTokenServer;
|
||||
RsNotify* mNotify;
|
||||
RsTurtle* mTurtle;
|
||||
//RsTurtle* mTurtle;
|
||||
RsFiles* mRsFiles;
|
||||
|
||||
class Search{
|
||||
|
Loading…
Reference in New Issue
Block a user